From be4b9ff3ec1ef8fa51296f101da79dff6073f8d9 Mon Sep 17 00:00:00 2001 From: dalbodeule <11470513+dalbodeule@users.noreply.github.com> Date: Thu, 13 Jun 2024 19:32:08 +0900 Subject: [PATCH] fix build.yml (x2) --- .github/workflows/build.yml | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 25d3373..06fdf8c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,30 +16,17 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 - - - name: Login to Docker hub - uses: docker/login-action@v2 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + - name: Install Buildpack CLI + uses: paketo-buildpacks/pack@v1 - name: Set datetime variable id: vars run: echo "DATETIME=$(date +'%Y%m%d%H%M')" >> $GITHUB_ENV - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - push: true - tags: | - dalbodeule/chzzkbot:latest - dalbodeule/chzzkbot:${{ env.DATETIME }} - platforms: | - linux/amd64 - linux/arm64 \ No newline at end of file + - name: Build and Push Native Image + run: | + pack build --builder paketo-buildpacks/builder:tiny . \ + --push true \ + --tag dalbodeule/chzzkbot:latest \ + --tag dalbodeule/chzzkbot:${{ env.DATETIME }} + --platforms linux/amd64,linux/arm64 \ No newline at end of file