Skip to content

Commit 0be0cb4

Browse files
committed
adding container & services to the workflow - using vars for Ports instead of secrets
1 parent c5f02f0 commit 0be0cb4

1 file changed

Lines changed: 9 additions & 12 deletions

File tree

.github/workflows/deployment.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ env:
5353
Authentication__Google__ClientId: ${{ secrets.Authentication__Google__ClientId }}
5454
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
5555
REDIS_PORT: ${{ secrets.REDIS_PORT }}
56-
SQL_PORT: ${{ secrets.SQL_PORT }}
57-
SQL_PASSWORD: ${{ secrets.SQL_PASSWORD }}
58-
API_PORT: ${{ secrets.API_PORT }}
56+
57+
SQL_PORT: ${{ vars.SQL_PORT }}
58+
SQL_PASSWORD: ${{ vars.SQL_PASSWORD }}
59+
API_PORT: ${{ vars.API_PORT }}
5960

6061
jobs:
6162
build-test:
@@ -85,15 +86,13 @@ jobs:
8586
redis:
8687
image: redis:7
8788
ports:
88-
- 3000:6379
89+
- 6379:6379
8990
volumes:
9091
- redis-data:/data
9192
env:
9293
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
93-
command: >
94-
redis-server
95-
--requirepass $"REDIS_PASSWORD"
96-
--appendonly yes
94+
entrypoint: /bin/sh
95+
command: -c 'exec redis-server --requirepass "$REDIS_PASSWORD" --appendonly yes'
9796

9897
steps:
9998
- name: Get Code
@@ -143,10 +142,8 @@ jobs:
143142
- redis-data:/data
144143
env:
145144
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
146-
command: >
147-
redis-server
148-
--requirepass $"REDIS_PASSWORD"
149-
--appendonly yes
145+
entrypoint: /bin/sh
146+
command: -c 'exec redis-server --requirepass "$REDIS_PASSWORD" --appendonly yes'
150147

151148
environment: production
152149
outputs:

0 commit comments

Comments
 (0)