Skip to content

Commit

Permalink
Merge pull request #314 from yuminn-k/fix/update-docker-publish-method
Browse files Browse the repository at this point in the history
[MIN-293] Docker CIワークフローの改善
  • Loading branch information
yuminn-k authored Jun 13, 2024
2 parents 2003f8e + 2087e69 commit dabf597
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit dabf597

Please sign in to comment.