From 0927ae47b3a3098a0ae2d811a8aa6f00ce6ec6dc Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Thu, 29 Sep 2022 21:06:14 +0000 Subject: [PATCH] Enable push on release --- .github/workflows/main.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6e8cbeb..09517fa 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -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: @@ -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 @@ -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" ...