From 7de3def39f9ee21b67c74f52e61b0f8f1eedef02 Mon Sep 17 00:00:00 2001 From: Adrian D'Alessandro Date: Fri, 2 Aug 2024 15:11:03 +0100 Subject: [PATCH] Create a 'stable' tag for releases from main --- .github/workflows/publish.yml | 1 + run_stable.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d75f7b9..5b943e8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,6 +25,7 @@ jobs: type=semver,pattern={{raw}} type=raw,value=latest,enable=${{ !github.event.release.prerelease }} type=raw,value=pre-release,enable=${{ github.event.release.prerelease }} + type=raw,value=stable,enable=${{ !github.event.release.prerelease && github.ref == 'refs/heads/main'}} - name: Build and push Docker image uses: docker/build-push-action@v2 with: diff --git a/run_stable.sh b/run_stable.sh index 7e852a5..6be35d7 100644 --- a/run_stable.sh +++ b/run_stable.sh @@ -1,2 +1,2 @@ -python3 configure.py version v0.3.2 +python3 configure.py version stable docker-compose up -d