Skip to content

Commit

Permalink
Fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
anacso17 committed Jan 7, 2025
1 parent 6cae261 commit 6711467
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand All @@ -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}
git fetch --tags; \
git checkout ${RELEASE_TAG}

0 comments on commit 6711467

Please sign in to comment.