Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cgendreau authored Sep 11, 2023
1 parent 9a0afee commit cd10c51
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:

- name: Set up for Maven Central deploy (master branch only)
uses: actions/setup-java@v3
if: ${{ github.ref == 'refs/heads/master' }}
if: ${{ github.ref == 'refs/heads/master-SKIP' }}
with: # update default settings.xml
distribution: 'temurin'
java-version: '17'
Expand All @@ -38,7 +38,7 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Publish to Maven Central (master branch only)
if: ${{ github.ref == 'refs/heads/master' }}
if: ${{ github.ref == 'refs/heads/master-SKIP' }}
run: mvn -DsignArtifacts=true --batch-mode javadoc:jar source:jar deploy
env:
MAVEN_USERNAME: aafcbicoe
Expand Down Expand Up @@ -79,20 +79,21 @@ jobs:
echo "VERSION_TAG=$(cat version.txt)" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build Image and Push
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: aafcbicoe/agent-api:${{ env.VERSION_TAG }}
provenance: false

0 comments on commit cd10c51

Please sign in to comment.