2 parents bcda9c7 + b819a4f commit 382640aCopy full SHA for 382640a
1 file changed
.github/workflows/build-dev.yml
@@ -18,10 +18,18 @@ jobs:
18
registry: ghcr.io
19
username: ${{ github.actor }}
20
password: ${{ secrets.GITHUB_TOKEN }}
21
+ - name: Extract metadata for image
22
+ id: meta
23
+ uses: docker/metadata-action@v5
24
+ with:
25
+ images: ghcr.io/${{ github.repository }}/dev
26
+ tags: |
27
+ type=sha
28
- name: Build & push image
29
uses: docker/build-push-action@v6
30
with:
31
context: .
32
file: .devcontainer/Dockerfile
- tags: ghcr.io/${{ github.repository }}/dev:${{ github.sha }}
33
+ tags: ${{ steps.meta.outputs.tags }}
34
+ labels: ${{ steps.meta.outputs.labels }}
35
push: true
0 commit comments