We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a45448e commit 50fcf08Copy full SHA for 50fcf08
1 file changed
.github/workflows/release-image.yml
@@ -26,9 +26,25 @@ jobs:
26
username: ${{ github.actor }}
27
password: ${{ secrets.GITHUB_TOKEN }}
28
29
+ - name: Docker metadata
30
+ id: meta
31
+ uses: docker/metadata-action@v5
32
+ with:
33
+ images: ghcr.io/${{ github.repository_owner }}/devcontainer
34
+ tags: |
35
+ type=sha
36
+ type=raw,value=latest
37
+ type=schedule,pattern={{date 'YYYYMMDD'}}
38
+
39
+ - name: Set up Docker Buildx
40
+ uses: docker/setup-buildx-action@v3
41
42
- name: Build and push
43
uses: docker/build-push-action@v6
44
with:
45
context: ./image
46
push: true
- tags: ghcr.io/${{ github.repository_owner }}/devcontainer:latest
47
+ tags: ${{ steps.meta.outputs.tags }}
48
+ labels: ${{ steps.meta.outputs.labels }}
49
+ cache-from: type=gha
50
+ cache-to: type=gha,mode=max
0 commit comments