Skip to content

Commit

Permalink
fix docker compose deploy
Browse files Browse the repository at this point in the history
alias used docker commands in ci
  • Loading branch information
LegitCamper committed Mar 15, 2024
1 parent 9f485e6 commit 8e69392
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/update-homelab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
env:
DOCKER_FILES: -f ai.yml -f monitor.yml -f network.yml -f media.yml -f utilities.yml
DOCKER_ENV: --env-file ./secrets/homelab.env
DOCKER_FLAGS: -d --remove-orphans

jobs:
deploy:
Expand All @@ -33,7 +34,7 @@ jobs:

- name: docker compose dry run
run: |
docker compose --dry-run ${{ env.DOCKER_ENV }} ${{ env.DOCKER_FILES }} up -d --remove-orphans
docker compose --dry-run ${{ env.DOCKER_ENV }} ${{ env.DOCKER_FILES }} up ${{ env.DOCKER_FLAGS }}
exit $?
- name: Copy folder content recursively to remote
Expand All @@ -53,4 +54,4 @@ jobs:
password: ${{ secrets.PASSWORD }}
script: |
cd ~/stacks/homelab/
docker compose ${{ env.DOCKER_ENV }} ${{ env.DOCKER_FILES }} -d --remove-orphans
docker compose ${{ env.DOCKER_ENV }} ${{ env.DOCKER_FILES }} up ${{ env.DOCKER_FLAGS }}

0 comments on commit 8e69392

Please sign in to comment.