Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Use github.ref format in docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
henryclw committed May 3, 2022
1 parent 57f4421 commit 084bccd
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ jobs:
flavor: |
latest=false
tags: |
type=raw,value=develop,enable=${{ github.ref == "refs/heads/develop" }}
type=raw,value=latest,enable=${{ github.ref == "refs/heads/master" }}
type=raw,value=latest,enable=${{ github.ref == "refs/heads/main" }}
type=raw,value=develop,enable=${{ github.ref == format('refs/heads/{0}', 'develop') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }}
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'main') }}
type=pep440,pattern={{raw}}
# set latest tag for master branch
type=raw,value=latest,enable=${{ github.ref == "refs/heads/master" }}
- name: Build and push all platforms
uses: docker/build-push-action@v2
Expand Down

0 comments on commit 084bccd

Please sign in to comment.