Skip to content

Commit 2c0f8d1

Browse files
authored
chore/update publish github action (#15)
- [x] update publish github action - [x] fix dockerhub semver tag publish
1 parent 9c9880f commit 2c0f8d1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,24 @@ jobs:
1717
shell: bash
1818

1919
- name: Check out the repo
20-
uses: actions/checkout@v2
20+
uses: actions/checkout@v3
2121

2222
- name: Log in to Docker Hub
23-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
23+
uses: docker/login-action@v3
2424
with:
2525
username: ${{ secrets.DOCKER_USERNAME }}
2626
password: ${{ secrets.DOCKER_PASSWORD }}
2727

2828
- name: Extract metadata (tags, labels) for Docker
2929
id: meta
30-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
30+
uses: docker/metadata-action@v5
3131
with:
3232
images: ${{ secrets.DOCKER_USERNAME }}/${{ env.REPOSITORY_NAME }}
3333

3434
- name: Build and push Docker image
35-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
35+
uses: docker/build-push-action@v5
3636
with:
3737
context: .
3838
push: true
39-
tags: ${{ steps.meta.outputs.tags }},${{ secrets.DOCKER_USERNAME }}/${{ env.REPOSITORY_NAME }}:latest
39+
tags: ${{ steps.meta.outputs.tags }}
4040
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)