From fc64f29c110ef8560aa129a7c6d8ccd80af4b756 Mon Sep 17 00:00:00 2001 From: gwon11225 <128041750+gwon11225@users.noreply.github.com> Date: Tue, 27 Aug 2024 11:14:18 +0900 Subject: [PATCH] Update azure-dev.yml --- .github/workflows/azure-dev.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/azure-dev.yml b/.github/workflows/azure-dev.yml index 27097d6..845915c 100644 --- a/.github/workflows/azure-dev.yml +++ b/.github/workflows/azure-dev.yml @@ -44,11 +44,18 @@ jobs: - name: Build with Gradle run: ./gradlew build - - 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 . - docker push ${{ secrets.DOCKER_USERNAME }}/uiseong-come-on:latest + - name: Dockerhub login + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + + - name: Build and push Docker image + uses: docker/build-push-action@v2 + with: + context: . + push: true + tags: ${{ secrets.DOCKER_USERNAME }}/uiseong-come-on:latest - name: Install azd uses: Azure/setup-azd@v1.0.0