From c303e9e21e82aae110130a49f4255debe4e38b39 Mon Sep 17 00:00:00 2001 From: devxb Date: Mon, 4 Mar 2024 22:46:18 +0900 Subject: [PATCH 1/5] =?UTF-8?q?ci:=20Docker=20metadata=20action=EC=9D=98?= =?UTF-8?q?=20=EB=B2=84=EC=A0=84=EC=9D=84=20=EC=98=AC=EB=A6=B0=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-release-publisher.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-release-publisher.yml b/.github/workflows/docker-release-publisher.yml index 03d86d82..dd56d3ef 100644 --- a/.github/workflows/docker-release-publisher.yml +++ b/.github/workflows/docker-release-publisher.yml @@ -1,6 +1,9 @@ name: Docker release image publisher on: + pull_request: + branches: + - release push: branches: - release @@ -33,7 +36,7 @@ jobs: - name: Extract metadata (tags, labels) for Docker id: meta - uses: docker/metadata-action@v4.4.0 + uses: docker/metadata-action@v5 with: images: samillmu/luffy From b54ee296458a47985a194eae4eb558942e99857e Mon Sep 17 00:00:00 2001 From: devxb Date: Mon, 4 Mar 2024 22:52:51 +0900 Subject: [PATCH 2/5] =?UTF-8?q?ci:=20Docker=20build-push-action=EC=9D=98?= =?UTF-8?q?=20=EB=B2=84=EC=A0=84=EC=9D=84=20=EC=98=AC=EB=A6=B0=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-release-publisher.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-release-publisher.yml b/.github/workflows/docker-release-publisher.yml index dd56d3ef..51ea8802 100644 --- a/.github/workflows/docker-release-publisher.yml +++ b/.github/workflows/docker-release-publisher.yml @@ -26,7 +26,7 @@ jobs: uses: gradle/gradle-build-action@v2 - name: Execute Gradle build - run: ./gradlew clean build + run: ./gradlew clean build -x test - name: Log in to Docker Hub uses: docker/login-action@v2.1.0 @@ -41,7 +41,7 @@ jobs: images: samillmu/luffy - name: Build and push Docker image - uses: docker/build-push-action@v4.0.0 + uses: docker/build-push-action@v5 with: context: . file: ./Dockerfile From 0f6a1eba91d12d2c657ac67b593d83047c2b1a0b Mon Sep 17 00:00:00 2001 From: devxb Date: Mon, 4 Mar 2024 22:57:11 +0900 Subject: [PATCH 3/5] =?UTF-8?q?test:=20tag=EB=A5=BC=20=EC=A7=80=EC=9A=B4?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-release-publisher.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-release-publisher.yml b/.github/workflows/docker-release-publisher.yml index 51ea8802..37100de4 100644 --- a/.github/workflows/docker-release-publisher.yml +++ b/.github/workflows/docker-release-publisher.yml @@ -55,4 +55,4 @@ jobs: SENTRY_DSN=${{ secrets.SENTRY_DSN }} tags: | samillmu/luffy:latest - ${{ steps.meta.outputs.tags }} +# ${{ steps.meta.outputs.tags }} From f3aad95262c4cb7d7491aac72046edc055598c5e Mon Sep 17 00:00:00 2001 From: devxb Date: Mon, 4 Mar 2024 23:05:14 +0900 Subject: [PATCH 4/5] =?UTF-8?q?ci:=20QEMU,=20Buildx=20setup=20action?= =?UTF-8?q?=EC=9D=84=20=EC=B6=94=EA=B0=80=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-release-publisher.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-release-publisher.yml b/.github/workflows/docker-release-publisher.yml index 37100de4..ceaa3d15 100644 --- a/.github/workflows/docker-release-publisher.yml +++ b/.github/workflows/docker-release-publisher.yml @@ -28,6 +28,12 @@ jobs: - name: Execute Gradle build run: ./gradlew clean build -x test + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Log in to Docker Hub uses: docker/login-action@v2.1.0 with: @@ -43,9 +49,9 @@ jobs: - name: Build and push Docker image uses: docker/build-push-action@v5 with: + push: true context: . file: ./Dockerfile - push: true build-args: | DB_URL=${{ secrets.DB_URL }} DB_USERNAME=${{ secrets.DB_USERNAME }} @@ -53,6 +59,6 @@ jobs: JWT_SECRET=${{ secrets.JWT_SECRET }} KAKAO_CLIENT_ID=${{ secrets.KAKAO_CIENT_ID }} SENTRY_DSN=${{ secrets.SENTRY_DSN }} - tags: | + tags: | samillmu/luffy:latest -# ${{ steps.meta.outputs.tags }} + ${{ steps.meta.outputs.tags }} From 9785c6b771487947542c1742f24988623618820a Mon Sep 17 00:00:00 2001 From: devxb Date: Mon, 4 Mar 2024 23:24:23 +0900 Subject: [PATCH 5/5] =?UTF-8?q?ci:=20=EA=B3=B5=EB=B0=B1=EC=9D=84=20?= =?UTF-8?q?=EC=82=AD=EC=A0=9C=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/docker-release-publisher.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-release-publisher.yml b/.github/workflows/docker-release-publisher.yml index ceaa3d15..7c90b160 100644 --- a/.github/workflows/docker-release-publisher.yml +++ b/.github/workflows/docker-release-publisher.yml @@ -53,8 +53,8 @@ jobs: context: . file: ./Dockerfile build-args: | - DB_URL=${{ secrets.DB_URL }} - DB_USERNAME=${{ secrets.DB_USERNAME }} + DB_URL=${{ secrets.DB_URL }} + DB_USERNAME=${{ secrets.DB_USERNAME }} DB_PASSWORD=${{ secrets.DB_PASSWORD }} JWT_SECRET=${{ secrets.JWT_SECRET }} KAKAO_CLIENT_ID=${{ secrets.KAKAO_CIENT_ID }}