From d3ab1a5d507fd010d5295db8c4fbc76b64ddf54a Mon Sep 17 00:00:00 2001 From: gwon11225 <128041750+gwon11225@users.noreply.github.com> Date: Mon, 26 Aug 2024 17:49:09 +0900 Subject: [PATCH] Update azure-dev.yml --- .github/workflows/azure-dev.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index f36aeeb..27097d6 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -34,6 +34,10 @@ jobs: java-version: '17' distribution: 'temurin' + - name: yaml file setting + run: | + echo "${{ secrets.APPLICATION_YAML }}" > ./src/main/resources/application.yaml + - name: Grant execute permission for gradlew run: chmod +x gradlew @@ -43,10 +47,7 @@ jobs: - name: Docker build run: | echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin - docker build -t ${{ secrets.DOCKER_USERNAME }}/uiseong-come-on \ - --build-arg DATABASE_URL=${{ secrets.DB_URL }} \ - --build-arg DATABASE_USER=${{ secrets.DB_USERNAME }} \ - --build-arg DATABASE_PASSWORD=${{ secrets.DB_PASSWORD }} . + docker build -t ${{ secrets.DOCKER_USERNAME }}/uiseong-come-on . docker push ${{ secrets.DOCKER_USERNAME }}/uiseong-come-on:latest - name: Install azd @@ -83,4 +84,4 @@ jobs: - name: Deploy Application run: | - azd deploy --environment ${{ env.AZURE_ENV_NAME }} --no-prompt \ No newline at end of file + azd deploy --environment ${{ env.AZURE_ENV_NAME }} --no-prompt