Skip to content

Commit 0927ae4

Browse files
committed
Enable push on release
1 parent c091853 commit 0927ae4

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/main.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
name: Build and push the container image
33

44
on: # yamllint disable-line rule:truthy
5-
[push, pull_request]
5+
push:
6+
pull_request:
7+
release:
8+
types: [published]
69

710
jobs:
811
lint:
@@ -35,13 +38,11 @@ jobs:
3538
"${{ env.CONTAINER_IMAGE_ID }}"
3639
"ghcr.io/${{ env.CONTAINER_IMAGE_ID }}"
3740
tags: |
38-
type=raw,value=latest,enable={{is_default_branch}}
39-
type=ref,event=pr
41+
type=ref,event=branch,enable={{is_default_branch}}
4042
type=semver,pattern={{version}}
4143
type=semver,pattern={{major}}.{{minor}}.{{patch}}
4244
type=semver,pattern={{major}}.{{minor}}
4345
type=semver,pattern={{major}}
44-
type=sha
4546
4647
- name: Set up QEMU
4748
uses: docker/setup-qemu-action@v2
@@ -105,5 +106,5 @@ jobs:
105106
username: ${{ secrets.DOCKER_USERNAME }}
106107
password: ${{ secrets.DOCKER_PASSWORD }}
107108
repository: "${{ env.CONTAINER_IMAGE_ID }}"
108-
short-description: "A virtualized implementation of PXE supported by dnsmasq"
109+
short-description: "https://github.com/ferrarimarco/docker-pxe"
109110
...

0 commit comments

Comments
 (0)