We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39b2173 commit d92d138Copy full SHA for d92d138
.github/workflows/docker-image.yml
@@ -36,14 +36,18 @@ jobs:
36
username: ${{ github.repository_owner }}
37
password: ${{ secrets.GITHUB_TOKEN }}
38
39
+ - name: Set lowercase repository name
40
+ run: |
41
+ echo "REPO_LOWER=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
42
+
43
- name: Build and push Docker image
44
id: docker_build
45
uses: docker/build-push-action@v6
46
with:
47
context: .
48
push: true
49
tags: |
- ghcr.io/${{ github.repository }}:${{ github.ref_name }}
50
+ ghcr.io/${{ env.REPO_LOWER }}:${{ github.ref_name }}
51
${{ github.ref_name == 'main' && format('ghcr.io/{0}:latest', github.repository) || '' }}
52
cache-from: type=gha
- cache-to: type=gha,mode=max
53
+ cache-to: type=gha,mode=max
0 commit comments