Skip to content

Commit

Permalink
docker/pipeline changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Aug 14, 2024
1 parent 87ea206 commit f386324
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,11 @@ jobs:
docker compose
-f ${{ env.DOCKER_STACK_PATH }}
config
> ${{ env.STACK_FILE }} && docker compose config | sed '/^name:*/d' > ${{ env.STACK_FILE }}
> ${{ env.STACK_FILE }}
- name: Remove the first line
run: docker compose config | sed '/^name:*/d' > ${{ env.STACK_FILE }}

- name: Move Stack File to Server
uses: appleboy/[email protected]
with:
Expand All @@ -233,4 +237,4 @@ jobs:
username: ${{ secrets.PROD_SERVER_USER }}
key: ${{ secrets.PROD_SSH_PRIVATE_KEY }}
port: ${{ secrets.PROD_SERVER_PORT }}
script: docker stack deploy --prune --resolve-image=changed --with-registry-auth -c /tmp/${{ env.STACK_FILE }} ${{ env.PRODUCTION_STACK_NAME }}
script: docker stack deploy --prune --resolve-image=changed --with-registry-auth -c /tmp/${{ env.STACK_FILE }} ${{ env.PRODUCTION_STACK_NAME }}

0 comments on commit f386324

Please sign in to comment.