diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index bd22fcf..410f117 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -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 diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 728f49f..5758512 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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