Skip to content

Commit

Permalink
chore(github-action):customize published image name
Browse files Browse the repository at this point in the history
  • Loading branch information
o-orand committed Mar 5, 2024
1 parent e45ad41 commit e7b5392
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:

env:
DOCKER_FILE_PATH: "fly"
IMAGE: "ghcr.io/${{github.repository_owner}}/concourse-fly"
jobs:
build_and_publish:
name: build and publish
Expand All @@ -35,14 +36,14 @@ jobs:
context: ${{env.DOCKER_FILE_PATH}}
push: true
tags: |
ghcr.io/${{ github.repository }}:latest
ghcr.io/${{ github.repository }}:${{github.sha}}
${{ env.IMAGE}}:latest
${{ env.IMAGE}}:${{github.sha}}
-
name: publish tagged image
if: github.ref_type == 'tag'
uses: docker/[email protected]
with:
push: true
context: ${{env.DOCKER_FILE_PATH}}
context: ${{ env.DOCKER_FILE_PATH }}
tags: |
ghcr.io/${{ github.repository }}:${{github.ref_name}}
${{ env.IMAGE}}:${{github.ref_name}}

0 comments on commit e7b5392

Please sign in to comment.