Skip to content

Commit

Permalink
reverting the thrid attempt of the secret, doesnt work
Browse files Browse the repository at this point in the history
  • Loading branch information
uo289029 committed Apr 7, 2024
1 parent 75bb20d commit 63ba83a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 19 deletions.
16 changes: 1 addition & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
- run: npm --prefix record install
- run: npm --prefix webapp install
- run: npm --prefix webapp run build
- run: npm --prefix webapp run test:e2e
- run: npm --prefix webapp run test:e2e
docker-push-webapp:
name: Push webapp Docker Image to GitHub Packages
runs-on: ubuntu-latest
Expand All @@ -59,7 +59,6 @@ jobs:
uses: elgohr/Publish-Docker-Github-Action@v5
env:
API_URI: http://${{ secrets.DEPLOY_HOST }}:8000
MONGODB_URI: ${{ secrets.MONGODB_URI }}
with:
name: arquisoft/wiq_es1b/webapp
username: ${{ github.actor }}
Expand All @@ -78,8 +77,6 @@ jobs:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
with:
name: arquisoft/wiq_es1b/authservice
username: ${{ github.actor }}
Expand All @@ -97,8 +94,6 @@ jobs:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
with:
name: arquisoft/wiq_es1b/userservice
username: ${{ github.actor }}
Expand All @@ -120,8 +115,6 @@ jobs:
sed -i "s/SOMEIP/${DEPLOY_HOST}/g" gatewayservice/openapi.yaml
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
with:
name: arquisoft/wiq_es1b/gatewayservice
username: ${{ github.actor }}
Expand All @@ -139,8 +132,6 @@ jobs:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
with:
name: arquisoft/wiq_es1b/questionsgenerator
username: ${{ github.actor }}
Expand All @@ -158,8 +149,6 @@ jobs:
- uses: actions/checkout@v4
- name: Publish to Registry
uses: elgohr/Publish-Docker-Github-Action@v5
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
with:
name: arquisoft/wiq_es1b/record
username: ${{ github.actor }}
Expand All @@ -170,8 +159,6 @@ jobs:
name: Deploy over SSH
runs-on: ubuntu-latest
needs: [docker-push-userservice,docker-push-authservice,docker-push-gatewayservice,docker-push-questionsgenerator,docker-push-record,docker-push-webapp]
env:
MONGODB_URI: ${{ secrets.MONGODB_URI }}
steps:
- name: Deploy over SSH
uses: fifsky/ssh-action@master
Expand All @@ -182,6 +169,5 @@ jobs:
command: |
wget https://raw.githubusercontent.com/arquisoft/wiq_es1b/master/docker-compose.yml -O docker-compose.yml
wget https://raw.githubusercontent.com/arquisoft/wiq_es1b/master/.env -O .env
echo "MONGODB_URI=$MONGODB_URI" >> .env
docker compose --profile prod down
docker compose --profile prod up -d --pull always
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ services:
networks:
- mynetwork
environment:
MONGODB_URI: ${MONGODB_URI}
MONGODB_URI: mongodb+srv://wiq_es01b_admin:admin@wiq.eckuzci.mongodb.net/wiq?retryWrites=true&w=majority&appName=WIQ

userservice:
container_name: userservice-${teamname:-defaultASW}
Expand All @@ -37,7 +37,7 @@ services:
networks:
- mynetwork
environment:
MONGODB_URI: ${MONGODB_URI}
MONGODB_URI: mongodb+srv://wiq_es01b_admin:admin@wiq.eckuzci.mongodb.net/wiq?retryWrites=true&w=majority&appName=WIQ

questionsgenerator:
container_name: questionsgenerator-${teamname:-defaultASW}
Expand All @@ -51,7 +51,7 @@ services:
networks:
- mynetwork
environment:
MONGODB_URI: ${MONGODB_URI}
MONGODB_URI: mongodb+srv://wiq_es01b_admin:admin@wiq.eckuzci.mongodb.net/wiq?retryWrites=true&w=majority&appName=WIQ

record:
container_name: record-${teamname:-defaultASW}
Expand All @@ -66,7 +66,7 @@ services:
networks:
- mynetwork
environment:
MONGODB_URI: ${MONGODB_URI}
MONGODB_URI: mongodb+srv://wiq_es01b_admin:admin@wiq.eckuzci.mongodb.net/wiq?retryWrites=true&w=majority&appName=WIQ

gatewayservice:
container_name: gatewayservice-${teamname:-defaultASW}
Expand Down

0 comments on commit 63ba83a

Please sign in to comment.