Skip to content

Commit da2bf97

Browse files
committed
update publish workflow.
Signed-off-by: Dave Shanley <[email protected]>
1 parent 7b297bf commit da2bf97

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/publish.yaml

+7-9
Original file line numberDiff line numberDiff line change
@@ -80,31 +80,29 @@ jobs:
8080
uses: actions/checkout@v3
8181

8282
- name: Log in to Docker Hub
83-
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
83+
uses: docker/login-action@v2
8484
with:
8585
username: ${{ secrets.DOCKER_USERNAME }}
8686
password: ${{ secrets.DOCKER_PASSWORD }}
8787

8888
- name: Log in to the Container registry
89-
uses: docker/login-action@f4ef78c080cd8ba55a85445d5b36e214a81df20a
89+
uses: docker/login-action@v2
9090
with:
9191
registry: ghcr.io
9292
username: ${{ github.actor }}
93-
password: ${{ secrets.GITHUB_TOKEN}}
93+
password: ${{ secrets.GH_PAT }}
9494

9595
- name: Extract metadata (tags, labels) for Docker
9696
id: meta
97-
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
97+
uses: docker/metadata-action@v4
9898
with:
9999
images: |
100100
pb33f/wiretap
101-
ghcr.io/pb33f/wiretap
101+
ghcr.io/${{ github.repository }}
102102
103103
- name: Build and push Docker images
104-
uses: docker/build-push-action@3b5e8027fcad23fda98b2e3ac259d8d67585f671
104+
uses: docker/build-push-action@v4
105105
with:
106106
context: .
107107
push: true
108-
tags: pb33f/wiretap:latest
109-
labels: ${{ steps.meta.outputs.labels }}
110-
file: ./Dockerfile
108+
tags: pb33f/wiretap:latest, pb33f/wiretap:${{ github.event.client_payload.new-tag }}

0 commit comments

Comments
 (0)