Skip to content

Commit 14dc010

Browse files
committed
Fix container ci
1 parent 83acd75 commit 14dc010

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/container.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ permissions:
1111
concurrency:
1212
group: pages
1313
cancel-in-progress: false
14-
env:
15-
CONTAINER_REGISTRY: ghcr.io
16-
CONTAINER_IMAGE: ghcr.io/${{ github.actor}}/${{ github.event.repository.name }}
1714
jobs:
1815
build:
1916
runs-on: ubuntu-latest
@@ -25,7 +22,7 @@ jobs:
2522
- name: Log in to Docker Registry
2623
uses: docker/login-action@v3
2724
with:
28-
registry: ${{ env.CONTAINER_REGISTRY }}
25+
registry: ghcr.io
2926
username: ${{ github.actor }}
3027
password: ${{ secrets.GITHUB_TOKEN }}
3128
- name: Set up Docker Buildx
@@ -37,7 +34,7 @@ jobs:
3734
with:
3835
push: true
3936
tags: |
40-
${{ env.CONTAINER_IMAGE }}:latest
41-
${{ env.CONTAINER_IMAGE }}${{ github.sha }}
42-
cache-from: type=registry,ref=${{ github.actor}}/${{ github.event.repository.name }}:latest
37+
ghcr.io/${{ github.repository }}:latest
38+
ghcr.io/${{ github.repository }}:${{ github.sha }}
39+
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:latest
4340
cache-to: type=inline

0 commit comments

Comments
 (0)