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 90aa273 commit 8fd10c4Copy full SHA for 8fd10c4
.github/workflows/docker-build.yml
@@ -8,7 +8,7 @@ on:
8
9
env:
10
REGISTRY: ghcr.io
11
- IMAGE_NAME: ${{ github.repository }}
+ IMAGE_NAME: ${{ github.repository.toLower() }}
12
13
jobs:
14
build-and-push:
@@ -28,9 +28,16 @@ jobs:
28
username: ${{ github.actor }}
29
password: ${{ secrets.GITHUB_TOKEN }}
30
31
+ - name: Set up Docker Buildx
32
+ uses: docker/setup-buildx-action@v2
33
+
34
- name: Build and push Docker image
35
uses: docker/build-push-action@v4
36
with:
37
context: .
38
push: true
- tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
39
+ tags: |
40
+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
41
+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
42
+ cache-from: type=gha
43
+ cache-to: type=gha,mode=max
0 commit comments