Skip to content

Commit

Permalink
update image name for workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nikmel2803 committed Nov 10, 2023
1 parent c9c5bb1 commit e9f85fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
BASE_IMAGE_NAME: ${{ github.repository }}
REGISTRY: ghcr.io
run: |
if [[ $GITHUB_REF == refs/tags/* ]]; then
if [[ $GITHUB_REF == refs/heads/main ]]; then
echo "image_name=${REGISTRY}/${BASE_IMAGE_NAME}" >> $GITHUB_OUTPUT
else
echo "image_name=${REGISTRY}/${BASE_IMAGE_NAME}/staging" >> $GITHUB_OUTPUT
Expand All @@ -40,7 +40,7 @@ jobs:
images: ${{ steps.base_image_name.outputs.image_name }}
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=raw,value={{branch}}-{{sha}}-{{date 'X'}},enable=${{ startsWith(github.ref, 'refs/heads') }}
type=raw,value={{sha}}-{{date 'X'}},enable=${{ startsWith(github.ref, 'refs/heads') }}
type=semver,pattern={{version}},prefix=v
type=semver,pattern={{major}}.{{minor}},prefix=v
Expand Down

0 comments on commit e9f85fd

Please sign in to comment.