From 6afbdb17f38e530905ef4e6988613f8e749b92fd Mon Sep 17 00:00:00 2001 From: Donkie Date: Mon, 10 Jul 2023 02:14:29 +0200 Subject: [PATCH] Build docker image on every push --- .github/workflows/release.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e76fb3b..2b02aed 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,11 @@ name: Create and publish Docker image on: - release: - types: [published] + push: + branches: + - 'master' + tags: + - 'v*' env: REGISTRY: ghcr.io @@ -36,7 +39,13 @@ jobs: id: meta uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + tags: | + type=edge + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} - name: Build and push Docker image uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4