From df1b2a376f0c9a8c1ebcc2bf743fb7f3dc316548 Mon Sep 17 00:00:00 2001 From: Benjamin Lannon Date: Sat, 19 Oct 2024 16:25:00 -0400 Subject: [PATCH] Support tagged releases --- .github/workflows/docker.yml | 4 +++- docker-compose.yaml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 38d7051..e29f3b3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -2,6 +2,8 @@ on: push: branches: - "main" + tags: + - "v*" name: Docker jobs: build: @@ -29,7 +31,7 @@ jobs: file: ./Dockerfile platforms: linux/amd64,linux/arm64 push: true - tags: ghcr.io/lannonbr/pkmn-tcg-app:latest + tags: ghcr.io/lannonbr/pkmn-tcg-app:${{ github.ref_name }} - name: Prune old images run: | cd .github/actions/prune-containers diff --git a/docker-compose.yaml b/docker-compose.yaml index cdff3d8..92bd6f1 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,6 +1,6 @@ services: pkmnTcgApp: - image: ghcr.io/lannonbr/pkmn-tcg-app:latest + image: ghcr.io/lannonbr/pkmn-tcg-app:main volumes: - "./data:/opt/data" ports: