mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 02:19:28 +00:00
Migrate container image builds to GitHub Workflows
* Migrate from the internal Drone server using a GitHub Workflow to perform the multi-arch container image build * Use self-hosted GitHub runners on ARM64 to perform the ARM64 build step faster that QEMU/KVM emulation * Mandate approval for all workflow runs from outside contributors since the builds use push credentials and partially run internally
This commit is contained in:
15
.github/workflows/build.yaml
vendored
Normal file
15
.github/workflows/build.yaml
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
name: build
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
go:
|
||||
uses: poseidon/.github/.github/workflows/golang-library.yaml@main
|
||||
multiarch:
|
||||
uses: poseidon/fleetlock/.github/workflows/multiarch.yaml@main
|
||||
secrets:
|
||||
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }}
|
||||
6
.github/workflows/test.yaml
vendored
6
.github/workflows/test.yaml
vendored
@@ -1,6 +0,0 @@
|
||||
name: test
|
||||
on:
|
||||
push:
|
||||
jobs:
|
||||
go:
|
||||
uses: poseidon/.github/.github/workflows/golang-library.yaml@main
|
||||
15
Makefile
15
Makefile
@@ -42,6 +42,21 @@ image-%:
|
||||
--arch $* --override-arch $* \
|
||||
--format=docker .
|
||||
|
||||
push: \
|
||||
push-amd64
|
||||
push-arm64
|
||||
|
||||
push-%:
|
||||
buildah tag $(LOCAL_REPO):$(VERSION)-$* $(IMAGE_REPO):$(VERSION)-$*
|
||||
buildah push --format v2s2 $(IMAGE_REPO):$(VERSION)-$*
|
||||
|
||||
manifest:
|
||||
buildah manifest create $(IMAGE_REPO):$(VERSION)
|
||||
buildah manifest add $(IMAGE_REPO):$(VERSION) docker://$(IMAGE_REPO):$(VERSION)-amd64
|
||||
buildah manifest add --variant v8 $(IMAGE_REPO):$(VERSION) docker://$(IMAGE_REPO):$(VERSION)-arm64
|
||||
buildah manifest inspect $(IMAGE_REPO):$(VERSION)
|
||||
buildah manifest push -f v2s2 $(IMAGE_REPO):$(VERSION) docker://$(IMAGE_REPO):$(VERSION)
|
||||
|
||||
protoc/%:
|
||||
podman run --security-opt label=disable \
|
||||
-u root \
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# matchbox
|
||||
[](https://pkg.go.dev/github.com/poseidon/matchbox)
|
||||
[](https://quay.io/repository/poseidon/matchbox)
|
||||
[](https://github.com/poseidon/matchbox/actions/workflows/test.yaml?query=branch%3Amain)
|
||||
[](https://github.com/poseidon/matchbox/actions/workflows/build.yaml?query=branch%3Amain)
|
||||

|
||||
[](https://github.com/sponsors/poseidon)
|
||||
[](https://fosstodon.org/@poseidon)
|
||||
|
||||
Reference in New Issue
Block a user