Skip to content

Commit

Permalink
Stop pusing development versions to DockerHub
Browse files Browse the repository at this point in the history
  • Loading branch information
alexliesenfeld committed Jul 5, 2023
1 parent 16b02b5 commit 84cb6e1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,17 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build development version
if: github.ref != 'refs/heads/master'
uses: docker/build-push-action@v4
with:
context: .
push: false
tags: alexliesenfeld/httpmock:latest
- name: Build and push
if: github.ref == 'refs/heads/master'
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: alexliesenfeld/httpmock:latest
tags: alexliesenfeld/httpmock:latest

0 comments on commit 84cb6e1

Please sign in to comment.