Skip to content

Commit

Permalink
ci: append -api to image name when building
Browse files Browse the repository at this point in the history
  • Loading branch information
vfurmane committed May 26, 2024
1 parent 0aca2e2 commit e69e33b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ env:
REGISTRY: ghcr.io
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASS: ${{ secrets.GITHUB_TOKEN }}
IMAGE_NAME: ${{ github.repository }}
BASE_IMAGE_NAME: ${{ github.repository }}
API_IMAGE_NAME: ${{ env.BASE_IMAGE_NAME }}-api

jobs:
api:
Expand Down Expand Up @@ -39,7 +40,7 @@ jobs:
id: meta_semver
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ env.API_IMAGE_NAME }}
tags: |
type=semver,pattern={{version}}
flavor: |
Expand All @@ -49,7 +50,7 @@ jobs:
id: meta_ref
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
images: ${{ env.REGISTRY }}/${{ env.API_IMAGE_NAME }}
tags: |
type=ref,event=branch
-
Expand Down

0 comments on commit e69e33b

Please sign in to comment.