Skip to content

Commit

Permalink
Check for main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
dickwolff authored Feb 1, 2024
1 parent 75097d4 commit d1b05f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Set GitVersion tag if main mranch
if: ${{ github.ref == 'refs/heads/main' }}
run: |
echo "DOCKER_TAG=dickwolff/export-to-ghostfolio:${{ env.GitVersion_MajorMinorPatch }}" >> $GITHUB_ENV
if: ${{ github.event_name != 'pull_request' }}

- name: Set GitVersion tag if feature branch
if: ${{ github.ref != 'refs/heads/main' }}
run: |
echo "DOCKER_TAG=dickwolff/export-to-ghostfolio:${{ env.GitVersion_MajorMinorPatch }}-beta" >> $GITHUB_ENV
if: ${{ github.event_name == 'pull_request' }}
echo "DOCKER_TAG=dickwolff/export-to-ghostfolio:${{ env.GitVersion_MajorMinorPatch }}-beta" >> $GITHUB_ENV
- name: Build and push
uses: docker/build-push-action@v5
Expand Down

0 comments on commit d1b05f2

Please sign in to comment.