Skip to content

Commit

Permalink
Only build container during release
Browse files Browse the repository at this point in the history
  • Loading branch information
perdian committed Aug 6, 2024
1 parent ca3b8cd commit 9a1bd4d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,15 @@ jobs:
with:
report_paths: 'target/surefire-reports/*.xml'
- name: Login to Docker Hub
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Build Docker image
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
uses: docker/build-push-action@v5
with:
context: .
Expand Down

0 comments on commit 9a1bd4d

Please sign in to comment.