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}