diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d88a9f..668eb76 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,23 +49,23 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.PASSWORD }} - - name: Build and push image using ko - env: - KO_DOCKER_REPO: ghcr.io/yju-okura/minori_gin - PATH: $PATH:~/go/bin - run: | - ko publish . -B --tags=${{ env.date }},latest -# - name: Set up Docker Buildx -# uses: docker/setup-buildx-action@v3 -# -# - name: Build and push -# uses: docker/build-push-action@v3 -# with: -# context: . -# file: ./Dockerfile -# platforms: linux/amd64 -# push: true -# no-cache: true -# tags: | -# ghcr.io/yju-okura/minori_gin:${{ env.date }} -# ghcr.io/yju-okura/minori_gin:latest +# - name: Build and push image using ko +# env: +# KO_DOCKER_REPO: ghcr.io/yju-okura/minori_gin +# PATH: $PATH:~/go/bin +# run: | +# ko publish . -B --tags=${{ env.date }},latest + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Build and push + uses: docker/build-push-action@v3 + with: + context: . + file: ./Dockerfile + platforms: linux/amd64 + push: true + no-cache: true + tags: | + ghcr.io/yju-okura/minori_gin:${{ env.date }} + ghcr.io/yju-okura/minori_gin:latest \ No newline at end of file