diff --git a/.github/workflows/bbm_deploy.yml b/.github/workflows/bbm_deploy.yml index e691c07a..1d98a9a8 100644 --- a/.github/workflows/bbm_deploy.yml +++ b/.github/workflows/bbm_deploy.yml @@ -54,6 +54,7 @@ echo "BB_ENV=DEV" >>$GITHUB_ENV echo "DEPLOY_PATH=/srv/dev" >>$GITHUB_ENV echo "ENV_FILE=.env.dev" >>$GITHUB_ENV + echo "PKEY=${{ secrets.BBM_DEV_SSH_PRIVATE_KEY }}" fi # PROD environment @@ -69,8 +70,6 @@ - uses: actions/checkout@v4 - name: prepare - env: - PKEY: ${{ secrets[format('BBM_{0}_SSH_PRIVATE_KEY', env.BB_ENV)] }}' if: ${{ env.DEPLOY == 'true' }} run: | echo "$PKEY" > test_secret.txt @@ -84,12 +83,12 @@ - name: deploy if: ${{ env.DEPLOY == 'true' }} run: | - echo "cd ${{ env.DEPLOY_PATH }}/docker-compose/ && ./generate-config.py --env=${BB_ENV,,}" + echo "cd $DEPLOY_PATH/docker-compose/ && ./generate-config.py --env=${BB_ENV,,}" - name: start stack if: ${{ env.DEPLOY == 'true' && env.BB_ENV == 'DEV' }} run: | - echo "cd ${{ env.DEPLOY_PATH }}/docker-compose && docker-compose pull && docker-compose --env-file ${{ env.ENV_FILE }} up -d" + echo "cd $DEPLOY_PATH/docker-compose && docker-compose pull && docker-compose --env-file $ENV_FILE up -d" - uses: actions/upload-artifact@v4 with: