Skip to content

Commit 68af0eb

Browse files
committed
update docker workflow
1 parent 38b9304 commit 68af0eb

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/docker-build.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Docker
1+
name: Build and publish docker image
22

33
on:
4-
push:
5-
tags: ["v*.*.*"]
4+
release:
5+
types: [published]
66

77
env:
88
REGISTRY: ghcr.io
@@ -17,30 +17,29 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Set up Docker Buildx
23-
uses: docker/setup-buildx-action@v2
23+
uses: docker/setup-buildx-action@v3
2424

2525
- name: Log into registry ${{ env.REGISTRY }}
26-
uses: docker/login-action@v2.1.0
26+
uses: docker/login-action@v3
2727
with:
2828
registry: ${{ env.REGISTRY }}
2929
username: ${{ github.actor }}
3030
password: ${{ secrets.GITHUB_TOKEN }}
3131

3232
- name: Extract Docker metadata
3333
id: meta
34-
uses: docker/metadata-action@v4
34+
uses: docker/metadata-action@v5
3535
with:
3636
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3737

3838
- name: Build and push Docker image
3939
id: build-and-push
40-
uses: docker/build-push-action@v3
40+
uses: docker/build-push-action@v5
4141
with:
4242
context: .
43-
file: ./Dockerfile.build
4443
push: true
4544
tags: ${{ steps.meta.outputs.tags }}
4645
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)