Skip to content
This repository has been archived by the owner on Jun 13, 2022. It is now read-only.

Commit

Permalink
Merge pull request #83 from sizumita/release/1.2.2
Browse files Browse the repository at this point in the history
Release 1.2.2
  • Loading branch information
sizumita authored Apr 24, 2021
2 parents 64f2ff9 + c8ef1dc commit f04e8fb
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 11 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish-image-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Test Docker

on:
push:
branches: [ develop ]
pull_request:
branches: [ develop ]

jobs:
build_test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Build Test
run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
docker buildx inspect --bootstrap
docker buildx build \
--platform linux/amd64 .
26 changes: 15 additions & 11 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,19 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push
- name: Set up Docker Buildx builder
run: |
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:1.2.1 \
--no-cache \
--output "type=registry" .
docker buildx build \
--platform linux/amd64,linux/arm64 \
--tag ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest \
--no-cache \
--output "type=registry" .
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --name multiarch --driver docker-container --use
docker buildx inspect --bootstrap
- name: Build and push
uses: docker/build-push-action@v2
with:
platforms: linux/amd64,linux/arm64
context: .
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:latest
ghcr.io/${{ github.repository_owner }}/${{ env.IMAGE_NAME }}:1.2.2

0 comments on commit f04e8fb

Please sign in to comment.