Skip to content

Commit ea85e23

Browse files
committed
Update publish.yml
Signed-off-by: sami <[email protected]>
1 parent 7d15e13 commit ea85e23

File tree

1 file changed

+19
-28
lines changed

1 file changed

+19
-28
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,29 @@
1+
---
12
name: Publish
2-
33
on:
44
workflow_dispatch:
5-
65
concurrency:
76
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
87
cancel-in-progress: true
9-
108
jobs:
119
build:
1210
runs-on: ubuntu-latest
1311
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
12+
- uses: actions/checkout@v4
13+
- name: Set up JDK 21
14+
uses: actions/setup-java@v4
15+
with:
16+
java-version: '21'
17+
distribution: temurin
18+
cache: maven
19+
cache-dependency-path: server/apps/postgres-app/pom.xml
20+
- name: Set up Maven 3.9.10
21+
uses: s4u/setup-maven-action@v1
22+
with:
23+
maven-version: 3.9.10
24+
- uses: docker/setup-qemu-action@v3
25+
- uses: docker/setup-buildx-action@v3
26+
- uses: imjasonh/[email protected]
27+
- name: BuildAndPublish
28+
run: |-
29+
mvn -T 4 clean install -Dmaven.javadoc.skip=true -DskipTests --pl :james-server-postgres-app --am

0 commit comments

Comments
 (0)