Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
aliavni committed Apr 19, 2024
1 parent 7016fd7 commit 8f91ef9
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Create .env file
env:
ENV_FILE_CONTENTS: ${{ secrets.ENV_FILE_CONTENTS }}
run: |
touch /home/runner/work/docker/docker/.env && \
echo ${ENV_FILE_CONTENTS} >> /home/runner/work/docker/docker/.env
# - name: Create .env file
# env:
# ENV_FILE_CONTENTS: ${{ secrets.ENV_FILE_CONTENTS }}
# run: |
# touch /home/runner/work/docker/docker/.env && \
# echo ${ENV_FILE_CONTENTS} >> /home/runner/work/docker/docker/.env

- uses: actions/checkout@v3
- name: Build the docker-compose stack
run: docker compose --env-file /home/runner/work/docker/docker/.env up -d --build
run: |
touch /home/runner/work/docker/docker/.env && \
echo ${ENV_FILE_CONTENTS} >> /home/runner/work/docker/docker/.env && \
docker compose --env-file /home/runner/work/docker/docker/.env up -d --build

0 comments on commit 8f91ef9

Please sign in to comment.