From 7f2882067a64c0d7c6cb40b7332a0be17ba89baa Mon Sep 17 00:00:00 2001 From: valerio como Date: Thu, 10 Oct 2024 14:30:08 +0000 Subject: [PATCH] chore: test tag --- .github/workflows/pull-request.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 49314b9..8df4609 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -2,7 +2,7 @@ name: pull-request on: push: - branches: [main] + # branches: [main] pull_request: branches: [main] # for future develpments @@ -17,6 +17,22 @@ jobs: docker-build: runs-on: ubuntu-latest steps: + - name: Docker meta + id: meta + uses: docker/metadata-action@v5 + with: + # list of Docker images to use as base name for tags + images: | + ghcr.io/teamdigitale/dataviz-srv: + # generate Docker tags based on the following events/attributes + tags: | + type=schedule + type=ref,event=branch + # type=ref,event=pr + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + type=sha - name: Set up QEMU uses: docker/setup-qemu-action@v3 @@ -38,6 +54,7 @@ jobs: file: "Dockerfile.app" platforms: linux/amd64 push: false - tags: | - ghcr.io/teamdigitale/dataviz-srv:latest - ghcr.io/teamdigitale/dataviz-srv:0.0.1 + tags: ${{ steps.meta.outputs.tags }} + # tags: | + # ghcr.io/teamdigitale/dataviz-srv:latest + # ghcr.io/teamdigitale/dataviz-srv:0.0.1