Skip to content

Commit

Permalink
Merge pull request #16 from SamYuan1990/buildx
Browse files Browse the repository at this point in the history
support buildx
  • Loading branch information
sunya-ch authored May 9, 2023
2 parents d57bd8c + 8b597ac commit 6b8b58c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/controller-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ jobs:
run: |
go mod tidy
make generate fmt vet
- name: Set up Docker
uses: docker/setup-buildx-action@v1
- 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
uses: docker/login-action@v1
with:
Expand All @@ -47,6 +49,7 @@ jobs:
with:
context: .
push: true
platforms: linux/amd64,linux/arm64,linux/s390x
tags: |
${{ env.IMAGE_NAME }}:v${{ env.IMAGE_VERSION }}
file: ./Dockerfile
7 changes: 5 additions & 2 deletions .github/workflows/parser-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,10 @@ jobs:
- uses: actions/setup-go@v2
with:
go-version: '1.17.0'
- name: Set up Docker
uses: docker/setup-buildx-action@v1
- 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
uses: docker/login-action@v1
with:
Expand All @@ -36,6 +38,7 @@ jobs:
with:
context: cpe-parser
push: true
platforms: linux/amd64,linux/arm64,linux/s390x
tags: |
${{ env.IMAGE_NAME }}:v${{ env.IMAGE_VERSION }}
file: ./cpe-parser/Dockerfile

0 comments on commit 6b8b58c

Please sign in to comment.