From da650f1514f520f1e0965ad9b7fb56145c3d31a9 Mon Sep 17 00:00:00 2001 From: Syunsuke Komma Date: Wed, 19 Jul 2023 06:15:41 +0900 Subject: [PATCH 1/4] add GitHub Actions for build --- .github/build.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/build.yaml diff --git a/.github/build.yaml b/.github/build.yaml new file mode 100644 index 0000000..5a58b8b --- /dev/null +++ b/.github/build.yaml @@ -0,0 +1,22 @@ +name: build + +on: + push: + branches-ignore: + - main + +jobs: + docker-build: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Build and push + uses: docker/build-push-action@v4 + with: + push: false From 3a356c31d6019c6a87eee22f55aeb16ea149969b Mon Sep 17 00:00:00 2001 From: Syunsuke Komma Date: Wed, 19 Jul 2023 06:17:48 +0900 Subject: [PATCH 2/4] move a workflow file --- .github/{ => workflows}/build.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/build.yaml (100%) diff --git a/.github/build.yaml b/.github/workflows/build.yaml similarity index 100% rename from .github/build.yaml rename to .github/workflows/build.yaml From b1045fc063987e221cf3aeff18621b87b0976d42 Mon Sep 17 00:00:00 2001 From: Syunsuke Komma Date: Wed, 19 Jul 2023 06:20:45 +0900 Subject: [PATCH 3/4] cosmetic changes --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 5a58b8b..f116406 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,7 +16,7 @@ jobs: name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - - name: Build and push + name: Build uses: docker/build-push-action@v4 with: push: false From f57f0de5e2042a43889e1894203c69bc1f92d779 Mon Sep 17 00:00:00 2001 From: Syunsuke Komma Date: Wed, 19 Jul 2023 06:24:49 +0900 Subject: [PATCH 4/4] add a workflow for main branch --- .github/workflows/build-and-push.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/build-and-push.yaml diff --git a/.github/workflows/build-and-push.yaml b/.github/workflows/build-and-push.yaml new file mode 100644 index 0000000..917efd4 --- /dev/null +++ b/.github/workflows/build-and-push.yaml @@ -0,0 +1,25 @@ +name: build-and-push + +on: + push: + branches: + - main + +jobs: + docker-build-and-push: + runs-on: ubuntu-latest + steps: + - + name: Set up QEMU + uses: docker/setup-qemu-action@v2 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + - + name: Build + uses: docker/build-push-action@v4 + with: + push: false + # TODO: get version from Dockerfile + # TODO: push: true, arm64 image + # TODO: add git tag \ No newline at end of file