From 9eb313ff5003becb85c483a3dce319246a578c9b Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Wed, 18 Oct 2023 05:31:47 +0100 Subject: [PATCH] ci: use ref_name directly for compose file naming --- .github/workflows/build_and_deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_and_deploy.yml b/.github/workflows/build_and_deploy.yml index e3712c3914..3e1f0a2247 100644 --- a/.github/workflows/build_and_deploy.yml +++ b/.github/workflows/build_and_deploy.yml @@ -163,7 +163,7 @@ jobs: - name: Deploy run: | - docker compose --file "docker-compose.${GIT_BRANCH}.yml" pull - docker compose --file "docker-compose.${GIT_BRANCH}.yml" up --detach --remove-orphans + docker compose --file "docker-compose.${{ github.ref_name }}.yml" pull + docker compose --file "docker-compose.${{ github.ref_name }}.yml" up --detach --remove-orphans env: DOCKER_HOST: ${{ vars.DOCKER_HOST }}