Skip to content

Commit aa1d1fc

Browse files
Update container.yml
1 parent c9c282d commit aa1d1fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/container.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
13
name: Container CI
24

35
on:
@@ -46,14 +48,18 @@ jobs:
4648
- name: Set up Docker Buildx
4749
id: buildx
4850
uses: docker/setup-buildx-action@v1
51+
52+
- id: read-docker-image-identifiers
53+
name: Read Docker Image Identifiers
54+
run: echo "IMAGE_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
4955

5056
- name: Run build (base container)
5157
uses: docker/build-push-action@v2
5258
with:
5359
builder: ${{ steps.buildx.output.name }}
5460
push: true
5561
tags: |
56-
ghcr.io/$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]'):${{ steps.tagger.outputs.image_tag }}
62+
ghcr.io/${{ env.IMAGE_REPOSITORY }}:${{ steps.tagger.outputs.image_tag }}
5763
target: base
5864
cache-from: type=local,src=~/cache
5965
cache-to: type=local,dest=~/cache

0 commit comments

Comments
 (0)