diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index 7030d6a..6fa2fec 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -21,12 +21,12 @@ jobs: - name: Set deployment variables run: | if [ "${{ github.ref }}" = "refs/heads/dev" ]; then - echo "PORT=3002" >> $GITHUB_ENV + echo "EXTPORT=3002" >> $GITHUB_ENV echo "IMAGE=backend-dev" >> $GITHUB_ENV echo "VAULT_PORT=8202" >> $GITHUB_ENV echo "SQLDATABASE=selecro_dev" >> $GITHUB_ENV elif [ "${{ github.ref }}" = "refs/heads/main" ]; then - echo "PORT=3001" >> $GITHUB_ENV + echo "EXTPORT=3001" >> $GITHUB_ENV echo "IMAGE=backend-main" >> $GITHUB_ENV echo "VAULT_PORT=8201" >> $GITHUB_ENV echo "SQLDATABASE=selecro_main" >> $GITHUB_ENV @@ -85,6 +85,7 @@ jobs: -e SQLPASSWORD="${{ secrets.SQLPASSWORD }}" \ -e SQLDATABASE="${{ env.SQLDATABASE }}" \ -e TOKEN="${{ secrets.TOKEN }}" \ + -e EXTPORT="${{ env.EXTPORT }}" \ -e EMAILHOST="${{ secrets.EMAILHOST }}" \ -e EMAILPORT="${{ secrets.EMAILPORT }}" \ -e EMAILUSER="${{ secrets.EMAILUSER }}" \ @@ -93,11 +94,12 @@ jobs: -e UNSEAL_KEY_1="${{ secrets.UNSEAL_KEY_1 }}" \ -e UNSEAL_KEY_2="${{ secrets.UNSEAL_KEY_2 }}" \ -e VAULT_URL="${{ secrets.VAULT_URL }}" \ + -e VAULT_PORT="${{ env.VAULT_PORT }}" \ -e CLIENT_ID="${{ secrets.CLIENT_ID }}" \ -e ROOT_VAULT="${{ secrets.ROOT_VAULT }}" \ -e INSTRUCTION_KEY="${{ secrets.INSTRUCTION_KEY }}" \ -e INSTRUCTION_KEY_PERMISSIONS="${{ secrets.INSTRUCTION_KEY_PERMISSIONS }}" \ - --name ${{ env.IMAGE }} -dp ${{ env.PORT }}:${{ env.PORT }} \ + --name ${{ env.IMAGE }} -dp ${{ env.EXTPORT }}:${{ env.EXTPORT }} \ selecro/${{ env.IMAGE }}:${{ github.ref_name }}-${{ env.SHORT_SHA }} && \ docker update --restart unless-stopped ${{ env.IMAGE }} && exit