Skip to content

Commit

Permalink
Update docker-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dmatej authored Aug 4, 2024
1 parent ff98c22 commit 82ebab7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:
REGISTRY: ghcr.io
# github.repository as <account>/<repo>
IMAGE_NAME: glassfish
IMAGE_ID: "ghcr.io/${{ github.repository_owner }}/glassfish"
IMAGE_ID: "ghcr.io/${{ github.repository_owner }}/$IMAGE_NAME"
IMAGE_VERSION: 7.0.16

jobs:
Expand All @@ -43,10 +43,9 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
cache: maven

- name: Maven Build
run: mvn clean package -Dglassfish.repository=$IMAGE_ID -Dglassfish.version=$IMAGE_VERSION
run: mvn -v && echo "-Dglassfish.repository=$IMAGE_ID -Dglassfish.version=$IMAGE_VERSION \n" && mvn clean package -Dglassfish.repository=$IMAGE_ID -Dglassfish.version=$IMAGE_VERSION

- name: Log in to registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
Expand Down

0 comments on commit 82ebab7

Please sign in to comment.