From 9900c91c46e136d9271ba3ac5d79b198393ab0ce Mon Sep 17 00:00:00 2001 From: Mehul Kiran Chaudhari <55375534+MehulKChaudhari@users.noreply.github.com> Date: Mon, 5 Feb 2024 10:23:18 +0530 Subject: [PATCH] fix secrets --- .github/workflows/deploy-to-ecs.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy-to-ecs.yml b/.github/workflows/deploy-to-ecs.yml index a753de3e..8e65b396 100644 --- a/.github/workflows/deploy-to-ecs.yml +++ b/.github/workflows/deploy-to-ecs.yml @@ -26,15 +26,15 @@ jobs: - name: Build and Push Docker Image run: | docker build -t ${{ secrets.DOCKERHUB_USERNAME }}/skill-tree-api:latest \ - --build-arg SPRING_DATASOURCE_URL=jdbc:mysql://db:3306/skilltree \ - --build-arg SPRING_DATASOURCE_USERNAME=testuser \ - --build-arg SPRING_DATASOURCE_PASSWORD=testpassword \ - --build-arg SPRING_JPA_HIBERNATE_DDL_AUTO=update \ - --build-arg MYSQL_HOST=db \ - --build-arg DB_NAME=skilltree \ - --build-arg MYSQL_DB_USERNAME=testuser \ - --build-arg MYSQL_DB_PASSWORD=testpassword \ - --build-arg DB_DDL_POLICY=update \ + --build-arg SPRING_DATASOURCE_URL=${{ secrets.SPRING_DATASOURCE_URL }} \ + --build-arg SPRING_DATASOURCE_USERNAME=${{ secrets.SPRING_DATASOURCE_USERNAME }} \ + --build-arg SPRING_DATASOURCE_PASSWORD=${{ secrets.SPRING_DATASOURCE_PASSWORD }} \ + --build-arg SPRING_JPA_HIBERNATE_DDL_AUTO=${{ secrets.SPRING_JPA_HIBERNATE_DDL_AUTO }} \ + --build-arg MYSQL_HOST=${{ secrets.MYSQL_HOST }} \ + --build-arg DB_NAME=${{ secrets.DB_NAME }} \ + --build-arg MYSQL_DB_USERNAME=${{ secrets.MYSQL_DB_USERNAME }} \ + --build-arg MYSQL_DB_PASSWORD=${{ secrets.MYSQL_DB_PASSWORD }} \ + --build-arg DB_DDL_POLICY=${{ secrets.DB_DDL_POLICY }} \ --build-arg API_V1_PREFIX=/api/v1 \ --build-arg SPRING_DATASOURCE_VERSION=8.1.0 \ -f skill-tree/Dockerfile .