Skip to content

Commit

Permalink
Enable push on release
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarimarco committed Sep 29, 2022
1 parent c091853 commit 0927ae4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
name: Build and push the container image

on: # yamllint disable-line rule:truthy
[push, pull_request]
push:
pull_request:
release:
types: [published]

jobs:
lint:
Expand Down Expand Up @@ -35,13 +38,11 @@ jobs:
"${{ env.CONTAINER_IMAGE_ID }}"
"ghcr.io/${{ env.CONTAINER_IMAGE_ID }}"
tags: |
type=raw,value=latest,enable={{is_default_branch}}
type=ref,event=pr
type=ref,event=branch,enable={{is_default_branch}}
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}.{{patch}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -105,5 +106,5 @@ jobs:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: "${{ env.CONTAINER_IMAGE_ID }}"
short-description: "A virtualized implementation of PXE supported by dnsmasq"
short-description: "https://github.com/ferrarimarco/docker-pxe"
...

0 comments on commit 0927ae4

Please sign in to comment.