Skip to content

Commit

Permalink
Run only on master
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Apr 8, 2024
1 parent 4d824f0 commit 9c7fcb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
type=semver,pattern={{major}}
type=sha
- uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
if: github.event_name != 'pull_request'
if: github.ref == 'refs/heads/main'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
Expand All @@ -53,7 +53,7 @@ jobs:
working-directory: ${{ env.IMAGE }}
run: docker compose -f docker-compose.test.yml run sut
- name: Set RELEASE
if: github.event_name != 'pull_request'
if: github.ref == 'refs/heads/main'
run: |
# shellcheck disable=SC2086
RC="$(\grep ${IMAGE}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/^.*://')"
Expand Down

0 comments on commit 9c7fcb0

Please sign in to comment.