diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index b856d41..e86db61 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -11,6 +11,9 @@ on: env_file: type: string required: true + # port: + # type: string + # required: true jobs: checkout: runs-on: [self-hosted, "${{inputs.runner}}"] @@ -27,8 +30,14 @@ jobs: - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: npm ci + check_port: + needs: checkout + runs-on: [self-hosted, "${{inputs.runner}}"] + steps: + - run: | + echo "port: ${{vars.PORT}}" create_env: - needs: checkout + needs: check_port runs-on: [self-hosted, "${{inputs.runner}}"] environment: ${{inputs.environment}} steps: @@ -42,7 +51,7 @@ jobs: echo "DB_DROP_SCHEMA=${{ secrets.DB_DROP_SCHEMA }}" >> ${{inputs.env_file}} echo "AUTH_SECRET=${{ secrets.AUTH_SECRET }}" >> ${{inputs.env_file}} echo "JWT_EXPIRES_IN=${{ secrets.JWT_EXPIRES_IN }}" >> ${{inputs.env_file}} - echo "PORT=${{ secrets.PORT }}" >> ${{inputs.env_file}} + echo "PORT=${{ vars.PORT }}" >> ${{inputs.env_file}} test: runs-on: [self-hosted, "${{inputs.runner}}"] needs: create_env diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 16ca3b3..2e4dcb0 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -11,4 +11,5 @@ jobs: environment: "dev" runner: "dev" env_file: "dev.env" + # port: "${{ vars.PORT }}" secrets: inherit \ No newline at end of file