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 af098fd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 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
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
ARG FAC_IMG_HTTPD_TAG=2.4.52-bullseye
ARG RELEASE_TAG

FROM httpd:${FAC_IMG_HTTPD_TAG}

SHELL ["bash", "-c"]

ARG RELEASE_TAG
RUN echo "RELEASE_TAG=${RELEASE_TAG}"

WORKDIR /usr/local/apache2/htdocs/

RUN set -e; \
Expand All @@ -21,4 +23,4 @@ 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 checkout ${RELEASE_TAG}
4 changes: 3 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ services:
image: 'ghcr.io/lnls-sirius/control-system-constants:${RELEASE_TAG}'
build:
context: .
args:
RELEASE_TAG: ${RELEASE_TAG}
labels:
- "br.com.lnls-sirius.department=FAC"
ports:
- 20080:20080
- 20080:20080

0 comments on commit af098fd

Please sign in to comment.