From 6711467098fd680db029071f12b5f0b0a0748f0a Mon Sep 17 00:00:00 2001 From: Ana Clara Oliveira Date: Tue, 7 Jan 2025 12:04:52 -0300 Subject: [PATCH] Fix publish workflow --- .github/workflows/publish.yml | 5 ++++- Dockerfile | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c66196d..d6043ec 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,7 +22,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Write deploy tag - run: echo "RELEASE_TAG=${GITHUB_REF_NAME}" > .env + run: echo "RELEASE_TAG=${GITHUB_REF_NAME}" > .env + + - name: Debug RELEASE_TAG + run: cat .env - name: Build Docker Compose 🏗️ run: docker compose build diff --git a/Dockerfile b/Dockerfile index 9fb8052..f171b9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,8 @@ FROM httpd:${FAC_IMG_HTTPD_TAG} SHELL ["bash", "-c"] +RUN echo ${RELEASE_TAG} + WORKDIR /usr/local/apache2/htdocs/ RUN set -e; \ @@ -21,4 +23,5 @@ COPY ./apache2_conf/httpd-mpm.conf /usr/local/apache2/conf/extra/httpd-mpm.conf RUN git clone https://github.com/lnls-sirius/control-system-constants; \ cd control-system-constants; \ - git checkout ${RELEASE_TAG} \ No newline at end of file + git fetch --tags; \ + git checkout ${RELEASE_TAG}