Skip to content

Commit

Permalink
added secrets for login
Browse files Browse the repository at this point in the history
  • Loading branch information
julius-heitkoetter committed Nov 28, 2023
1 parent 129d51c commit 8656700
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dev-ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@ jobs:
/bin/bash ${workspace}/deploy/create_secret.sh hf_token.txt ${{ secrets.HF_TOKEN }}
/bin/bash ${workspace}/deploy/create_secret.sh pg_password.txt ${{ secrets.DEV_PG_PASSWORD }}
/bin/bash ${workspace}/deploy/create_secret.sh grafana_password.txt ${{ secrets.DEV_GRAFANA_PG_PASSWORD }}
/bin/bash ${workspace}/deploy/create_secret.sh a2rchi_ssl_certificate.txt "$(echo {{ secrets.A2RCHI_SSL_CERTIFICATE }} | base64 -d)"
/bin/bash ${workspace}/deploy/create_secret.sh a2rchi_ssl_certificate_key.txt "$(echo {{ secrets.A2RCHI_SSL_CERTIFICATE_KEY }} | base64 -d)"
/bin/bash ${workspace}/deploy/create_secret.sh a2rchi_ssl_certificate.txt ${{ secrets.A2RCHI_SSL_CERTIFICATE }}
/bin/bash ${workspace}/deploy/create_secret.sh a2rchi_ssl_certificate_key.txt ${{ secrets.A2RCHI_SSL_CERTIFICATE_KEY }}
/bin/bash ${workspace}/deploy/create_secret.sh mit_client_id.txt ${{ secrets.DEV_MIT_CLIENT_ID }}
/bin/bash ${workspace}/deploy/create_secret.sh mit_client_secret.txt ${{ secrets.DEV_MIT_CLIENT_SECRET }}
/bin/bash ${workspace}/deploy/create_secret.sh google_client_id.txt ${{ secrets.DEV_GOOGLE_CLIENT_ID }}
/bin/bash ${workspace}/deploy/create_secret.sh google_client_secret.txt ${{ secrets.DEV_GOOGLE_CLIENT_SECRET }}
# create env file to set tag(s) for docker-compose
- name: Create Env File
Expand Down
18 changes: 18 additions & 0 deletions deploy/dev/dev-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,20 @@ services:
POSTGRES_PASSWORD_FILE: /run/secrets/pg_password
A2RCHI_SSL_CERTIFICATE_FILE: /run/secrets/a2rchi_ssl_certicate
A2RCHI_SSL_CERTIFICATE_KEY_FILE: /run/secrets/a2rchi_ssl_certicate_key
MIT_CLIENT_ID_FILE: /run/secrets/mit_client_id
MIT_CLIENT_SECRET_FILE: /run/secrets/mit_client_secret
GOOGLE_CLIENT_ID_FILE: /run/secrets/google_client_id
GOOGLE_CLIENT_SECRET_FILE: /run/secrets/google_client_secret
secrets:
- openai_api_key
- hf_token
- pg_password
- a2rchi_ssl_certicate
- a2rchi_ssl_certicate_key
- mit_client_id
- mit_client_secret
- google_client_id
- google_client_secret
volumes:
- a2rchi-dev-data:/root/data/
logging:
Expand Down Expand Up @@ -265,3 +275,11 @@ secrets:
file: secrets/a2rchi_ssl_certicate.txt
a2rchi_ssl_certicate_key:
file: secrets/a2rchi_ssl_certicate_key.txt
mit_client_id:
file: secrets/mit_client_id.txt
mit_client_secret:
file: secrets/mit_client_secret.txt
google_client_id:
file: secrets/google_client_id.txt
google_client_secret:
file: secrets/google_client_secret.txt

0 comments on commit 8656700

Please sign in to comment.