1+ ---
12name : Publish
2-
33on :
44 workflow_dispatch :
55
@@ -11,28 +11,25 @@ jobs:
1111 build :
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v4
15- - name : Set up JDK 11
16- uses : actions/setup-java@v4
17- with :
18- java-version : ' 11'
19- distribution : ' temurin'
20- cache : maven
21- cache-dependency-path : ' server/apps/distributed-app/pom.xml'
22- - uses : docker/setup-qemu-action@v3
23- - uses : docker/setup-buildx-action@v3
24- -
uses :
imjasonh/[email protected] 25- - name : Build
26- run : |
27- mvn clean install -DskipTests
28- - name : Publish to GitHub Container Registry
29- env :
30- REGISTRY : ghcr.io/appscode
31- DOCKER_TOKEN : ${{ secrets.LGTM_GITHUB_TOKEN }}
32- USERNAME : 1gtm
33- APPSCODE_ENV : prod
34- run : |
35- docker login ghcr.io --username ${USERNAME} --password ${DOCKER_TOKEN}
36- cd server/apps/distributed-app/
37- docker image load -i target/jib-image.tar
38- docker push ghcr.io/appscode/inbox-server:latest
14+ - uses : actions/checkout@v4
15+ - name : Set up JDK 21
16+ uses : actions/setup-java@v4
17+ with :
18+ java-version : ' 21'
19+ distribution : temurin
20+ cache : maven
21+ cache-dependency-path : server/apps/postgres-app/pom.xml
22+ - name : BuildAndPublish
23+ env :
24+ REGISTRY : ghcr.io/appscode
25+ DOCKER_TOKEN : ${{ secrets.LGTM_GITHUB_TOKEN }}
26+ USERNAME : 1gtm
27+ APPSCODE_ENV : prod
28+ run : |-
29+ echo "${DOCKER_TOKEN}" | docker login ghcr.io -u ${USERNAME} --password-stdin
30+ mvn -T 4 -q clean install \
31+ -Dmaven.javadoc.skip=true \
32+ -DskipTests \
33+ -Djib.allowInsecureRegistries=true \
34+ -Djib.blobCache=null \
35+ --pl :james-server-postgres-app --am
0 commit comments