Skip to content

Commit

Permalink
Replace values in docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodriguezs2020 committed Jan 13, 2025
1 parent 29a2c33 commit 9134990
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version # Verifica que docker-compose se haya instalado correctamente
- name: Replace values in docker-compose.yaml
run: |
sed -i 's/change_me_access/${{ secrets.AWS_S3_ACCESS_KEY }}/g' /docker/docker-compose.yaml
sed -i 's/change_me_secret/${{ secrets.AWS_S3_SECRET_KEY }}/g' /docker/docker-compose.yaml
- name: Setup docker compose
run: |
cd ./docker
Expand Down
4 changes: 2 additions & 2 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ services:
- SPRING_DATASOURCE_USERNAME=root
- SPRING_DATASOURCE_PASSWORD=DAWWebapp09+
- JWT_SECRET=snapstudy
- AWS_S3_ACCESS_KEY_ID="${{ secrets.AWS_S3_ACCESS_KEY }}"
- AWS_S3_SECRET_ACCESS_KEY="${{ secrets.AWS_S3_SECRET_ACCESS }}"
- AWS_S3_ACCESS_KEY_ID=change_me_access
- AWS_S3_SECRET_ACCESS_KEY=change_me_secret
depends_on:
- db
restart: on-failure
Expand Down

0 comments on commit 9134990

Please sign in to comment.