Skip to content

Commit

Permalink
pipline docker-compose new verion
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Aug 18, 2024
1 parent 9d09544 commit 4f795c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,12 @@ jobs:
run: |
echo "STACK_FILE=docker-stack-${{ env.PROD_STACK_NAME }}-${{ github.sha }}.yml" >> $GITHUB_ENV
# config needs to have the published port as an integer + creats anextra line at the rendered file so we fix all with "sed" command
- name: Prepare Stack File
run: >
ENVIRONMENT=${{ env.PRODUCTION }} DOMAIN=${{ env.PROD_DOMAIN }} CONTAINER_IMAGE=${IMAGE_ID} STACK_NAME=${{ env.PROD_STACK_NAME }}
docker compose -f ${{ env.DOCKER_COMPOSE_PATH }} -f ${{ env.DOCKER_STACK_PATH }} ${{ env.OVERRIDE_STACK_FILE }}
config > ${{ env.STACK_FILE }}
config | sed "s/published:.*/published: 35432/g" | sed 's/^name:.*/version: "3.6"/' > ${{ env.STACK_FILE }}
- name: Move Stack File to Server
uses: appleboy/[email protected]
Expand Down

0 comments on commit 4f795c7

Please sign in to comment.