Skip to content

Commit

Permalink
use global rule
Browse files Browse the repository at this point in the history
  • Loading branch information
cgeller committed Jan 29, 2024
1 parent da331df commit 57dd7e0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
needs: clean-up
env:
IMAGE_TAG: latest
IMAGE_TAG: ${{ github.ref == 'refs/heads/main' && 'latest' || 'latest_${{ github.ref_name }}_ci }}

steps:

Expand Down Expand Up @@ -45,10 +45,10 @@ jobs:
- name: Remove PythonAPI.tar.gz
run: rm PythonAPI.tar.gz

- name: Set image tag
run: |
echo "IMAGE_TAG="latest_${{ github.ref_name }}_ci" >> $GITHUB_ENV
if: github.ref.name != github.event.repository.default_branch
#- name: Set image tag
# run: |
# echo "IMAGE_TAG="latest_${{ github.ref_name }}_ci" >> $GITHUB_ENV
# if: github.ref.name != github.event.repository.default_branch

- uses: docker/build-push-action@v5
name: Build and push
Expand Down

0 comments on commit 57dd7e0

Please sign in to comment.