We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2222a87 commit b90735bCopy full SHA for b90735b
1 file changed
.github/workflows/build.yml
@@ -4,9 +4,6 @@ on:
4
push:
5
workflow_dispatch:
6
7
-env:
8
- DOCKER_APP_REPOSITORY: ghcr.io/${{ github.repository }}
9
-
10
jobs:
11
debug:
12
runs-on: ubuntu-latest
@@ -28,9 +25,15 @@ jobs:
28
25
- name: Set up Docker Buildx
29
26
uses: docker/setup-buildx-action@v3
30
27
+ - name: Determine Docker image tags
+ id: meta
+ uses: docker/metadata-action@v5
31
+ with:
32
+ images: ghcr.io/${{ github.repository }}
33
+ tags: type=sha,suffix=-pre-${{ github.run_id }}_${{ github.run_attempt }}
34
+
35
- name: Build and push
36
uses: docker/build-push-action@v6
37
with:
38
push: false
- tags: |
- ${DOCKER_APP_REPOSITORY}:run-${github.run_id}_${github.run_attempt}
39
+ tags: ${{ steps.meta.outputs.tags }}
0 commit comments