Skip to content

Commit 5f12dc5

Browse files
authored
Update docker-image.yml
1 parent 1afad0e commit 5f12dc5

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/docker-image.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Docker Image CI
22

33
on:
4-
push:
5-
branches: [ main ]
6-
pull_request:
7-
branches: [ main ]
4+
release:
5+
types: [published]
86

97
env:
108
REGISTRY: ghcr.io
@@ -34,12 +32,12 @@ jobs:
3432
with:
3533
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3634
tags: |
37-
type=sha
35+
type=ref,event=tag
3836
3937
- name: Build and push Docker image
4038
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
4139
with:
4240
context: .
4341
push: true
4442
tags: ${{ steps.meta.outputs.tags }}
45-
labels: ${{ steps.meta.outputs.labels }}
43+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)