Skip to content

Commit a2a3c33

Browse files
committed
Remove docker/metadata-action dependency
Inline the image tags directly in the build step instead of using the metadata action.
1 parent 50fcf08 commit a2a3c33

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/release-image.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,6 @@ jobs:
2626
username: ${{ github.actor }}
2727
password: ${{ secrets.GITHUB_TOKEN }}
2828

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-
3929
- name: Set up Docker Buildx
4030
uses: docker/setup-buildx-action@v3
4131

@@ -44,7 +34,8 @@ jobs:
4434
with:
4535
context: ./image
4636
push: true
47-
tags: ${{ steps.meta.outputs.tags }}
48-
labels: ${{ steps.meta.outputs.labels }}
37+
tags: |
38+
ghcr.io/${{ github.repository_owner }}/devcontainer:latest
39+
ghcr.io/${{ github.repository_owner }}/devcontainer:${{ github.sha }}
4940
cache-from: type=gha
5041
cache-to: type=gha,mode=max

0 commit comments

Comments
 (0)