@@ -3,8 +3,8 @@ name: Publish Docker image
33on :
44 workflow_dispatch :
55 push :
6- # tags:
7- # - "v*"
6+ tags :
7+ - " v*"
88
99permissions : {}
1010
@@ -32,24 +32,24 @@ jobs:
3232 - name : Set up Docker Buildx
3333 uses : docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c # v4.2.0
3434
35- # - name: Log in to the Container registry
36- # uses: docker/login-action@06fb636fac595d6fb4b28a5dfcb21a6f5091859c
37- # with:
38- # registry: ghcr.io
39- # username: ${{ github.actor }}
40- # password: ${{ secrets.GITHUB_TOKEN }}
35+ - name : Log in to the Container registry
36+ uses : docker/login-action@06fb636fac595d6fb4b28a5dfcb21a6f5091859c
37+ with :
38+ registry : ghcr.io
39+ username : ${{ github.actor }}
40+ password : ${{ secrets.GITHUB_TOKEN }}
4141
42- # - name: Extract metadata (tags, labels) for Docker
43- # id: meta
44- # uses: docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302
45- # with:
46- # images: ghcr.io/${{ github.repository }}
42+ - name : Extract metadata (tags, labels) for Docker
43+ id : meta
44+ uses : docker/metadata-action@dc802804100637a589fabce1cb79ff13a1411302
45+ with :
46+ images : ghcr.io/${{ github.repository }}
4747
4848 - name : Build and push Docker image
4949 uses : docker/build-push-action@53b7df96c91f9c12dcc8a07bcb9ccacbed38856a
5050 with :
5151 context : .
5252 platforms : linux/amd64,linux/arm64
53- push : false
54- # tags: ${{ steps.meta.outputs.tags }}
55- # labels: ${{ steps.meta.outputs.labels }}
53+ push : true
54+ tags : ${{ steps.meta.outputs.tags }}
55+ labels : ${{ steps.meta.outputs.labels }}
0 commit comments