From edebcdb827781b7d5b51d3167054475c329e9fb5 Mon Sep 17 00:00:00 2001 From: Manuel Date: Wed, 26 Jul 2023 21:40:25 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=9A=20Add=20workflow=20dispatcher?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-dev.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-dev.yml b/.github/workflows/docker-dev.yml index f4433c7..f88494e 100644 --- a/.github/workflows/docker-dev.yml +++ b/.github/workflows/docker-dev.yml @@ -10,8 +10,11 @@ on: - '.github/**' - 'images/' - '*.md' - workflow_dispatch: + inputs: + tag: + required: false + description: 'Tag to deploy to' env: # Use docker.io for Docker Hub if empty @@ -51,8 +54,9 @@ jobs: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} # generate Docker tags based on the following events/attributes tags: | - type=raw,value=dev - type=pep440,pattern={{version}} + type=ref,event=pr + type=raw,value=${{ github.event.inputs.tag }}, prefix=test-,enable=${{ github.event.inputs.tag != '' }} + tpye=raw,value=dev,priority=1,enable=${{ github.event.inputs.tag == '' }} - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx