Skip to content

Commit 50bc106

Browse files
authored
Fix kafka network
1 parent b3ecade commit 50bc106

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build_and_publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
runs-on: [ self-hosted, Linux, testing ]
5757
environment:
5858
name: Testing
59-
url: https://api.test.profcomff.com/auth
59+
url: https://api.test.profcomff.com/
6060
env:
6161
CONTAINER_NAME: com_profcomff_api_auth_test
6262
permissions:
@@ -78,13 +78,12 @@ jobs:
7878
alembic upgrade head
7979
8080
- name: Run new version
81-
id: run_prod
81+
id: run_test
8282
run: |
8383
docker stop ${{ env.CONTAINER_NAME }} || true && docker rm ${{ env.CONTAINER_NAME }} || true
8484
docker run \
8585
--detach \
8686
--restart always \
87-
--network=web \
8887
--network=kafka \
8988
--env DB_DSN='${{ secrets.DB_DSN }}' \
9089
--env ROOT_PATH='/auth' \
@@ -123,6 +122,7 @@ jobs:
123122
--env GUNICORN_CMD_ARGS='--log-config logging_test.conf' \
124123
--name ${{ env.CONTAINER_NAME }} \
125124
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:test
125+
docker network connect web ${{ env.CONTAINER_NAME }}
126126
127127
deploy-production:
128128
name: Deploy Production
@@ -131,7 +131,7 @@ jobs:
131131
runs-on: [ self-hosted, Linux, production ]
132132
environment:
133133
name: Production
134-
url: https://api.profcomff.com/auth
134+
url: https://api.profcomff.com/
135135
env:
136136
CONTAINER_NAME: com_profcomff_api_auth
137137
permissions:
@@ -159,7 +159,6 @@ jobs:
159159
docker run \
160160
--detach \
161161
--restart always \
162-
--network=web \
163162
--network=kafka \
164163
--env DB_DSN='${{ secrets.DB_DSN }}' \
165164
--env ROOT_PATH='/auth' \
@@ -199,3 +198,4 @@ jobs:
199198
--env GUNICORN_CMD_ARGS='--log-config logging_prod.conf' \
200199
--name ${{ env.CONTAINER_NAME }} \
201200
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
201+
docker network connect web ${{ env.CONTAINER_NAME }}

0 commit comments

Comments
 (0)