From 8965f87f1ef688b0a31e4eb8404617d44b893f9f Mon Sep 17 00:00:00 2001 From: Faishal Nelwan <108632813+pesolosep@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:25:55 +0700 Subject: [PATCH] fix calling in production to secret --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 240178b..f8488e9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,8 +93,8 @@ jobs: run: export DOCKER_BUILDKIT=1 - name: Build Docker Image run: | - docker build --build-arg PRODUCTION= ${{ secrets.PRODUCTION }} --build-arg JDBC_DATABASE_PASSWORD= ${{ secrets.JDBC_DATABASE_PASSWORD }} --build-arg JDBC_DATABASE_URL= ${{ secrets.JDBC_DATABASE_URL }} --build-arg JDBC_DATABASE_USERNAME= ${{ secrets.JDBC_DATABASE_USERNAME }} -t ${{ secrets.REGISTRY_USER }}/${{ secrets.IMAGE_NAME }}:${{ secrets.IMAGE_TAG }} . - docker push ${{ secrets.REGISTRY_USER }}/${{ secrets.IMAGE_NAME }}:${{ secrets.IMAGE_TAG }} + docker build --build-arg PRODUCTION=${{ secrets.PRODUCTION }} --build-arg JDBC_DATABASE_PASSWORD=${{ secrets.JDBC_DATABASE_PASSWORD }} --build-arg JDBC_DATABASE_URL=${{ secrets.JDBC_DATABASE_URL }} --build-arg JDBC_DATABASE_USERNAME=${{ secrets.JDBC_DATABASE_USERNAME }} -t ${{ secrets.REGISTRY_USER }}/${{ secrets.IMAGE_NAME }}:${{ secrets.IMAGE_TAG }} . + deploy: name: Deploy to GCP