Skip to content

Commit fa95e01

Browse files
Merge pull request #4 from olha-dev-fullstack/dev
Dev
2 parents 4601ea5 + 1266dc7 commit fa95e01

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/deployment.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
env_file:
1212
type: string
1313
required: true
14+
# port:
15+
# type: string
16+
# required: true
1417
jobs:
1518
checkout:
1619
runs-on: [self-hosted, "${{inputs.runner}}"]
@@ -27,8 +30,14 @@ jobs:
2730
- name: Install dependencies
2831
if: steps.cache.outputs.cache-hit != 'true'
2932
run: npm ci
33+
check_port:
34+
needs: checkout
35+
runs-on: [self-hosted, "${{inputs.runner}}"]
36+
steps:
37+
- run: |
38+
echo "port: ${{vars.PORT}}"
3039
create_env:
31-
needs: checkout
40+
needs: check_port
3241
runs-on: [self-hosted, "${{inputs.runner}}"]
3342
environment: ${{inputs.environment}}
3443
steps:
@@ -42,7 +51,7 @@ jobs:
4251
echo "DB_DROP_SCHEMA=${{ secrets.DB_DROP_SCHEMA }}" >> ${{inputs.env_file}}
4352
echo "AUTH_SECRET=${{ secrets.AUTH_SECRET }}" >> ${{inputs.env_file}}
4453
echo "JWT_EXPIRES_IN=${{ secrets.JWT_EXPIRES_IN }}" >> ${{inputs.env_file}}
45-
echo "PORT=${{ secrets.PORT }}" >> ${{inputs.env_file}}
54+
echo "PORT=${{ vars.PORT }}" >> ${{inputs.env_file}}
4655
test:
4756
runs-on: [self-hosted, "${{inputs.runner}}"]
4857
needs: create_env

.github/workflows/dev.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ jobs:
1111
environment: "dev"
1212
runner: "dev"
1313
env_file: "dev.env"
14+
# port: "${{ vars.PORT }}"
1415
secrets: inherit

0 commit comments

Comments
 (0)