-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Go 1.21.0 * Add docker build actions * Add docker build actions * Add docker build actions * Add docker build actions * Add docker build actions
- Loading branch information
Showing
8 changed files
with
154 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build Linter Image | ||
on: | ||
pull_request: | ||
paths: | ||
- Dockerfile.lint | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
image: tonistiigi/binfmt:latest | ||
platforms: all | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASS }} | ||
|
||
- name: get sha256 | ||
id: sha | ||
run: echo "sha=$(sha256sum Dockerfile.lint | awk '{print $1}')" >> $GITHUB_OUTPUT | ||
|
||
- name: build linter | ||
uses: docker/build-push-action@v4 | ||
with: | ||
push: true | ||
file: Dockerfile.lint | ||
tags: robbydyer/rgbmatrixlint:${{steps.sha.outputs.sha}} | ||
platforms: linux/amd64,linux/arm64/v8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Build Protoc Image | ||
on: | ||
pull_request: | ||
paths: | ||
- Dockerfile.protoc | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
image: tonistiigi/binfmt:latest | ||
platforms: all | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASS }} | ||
|
||
- name: get sha256 | ||
id: sha | ||
run: echo "sha=$(sha256sum Dockerfile.protoc | awk '{print $1}')" >> $GITHUB_OUTPUT | ||
|
||
- name: build linter | ||
uses: docker/build-push-action@v4 | ||
with: | ||
push: true | ||
file: Dockerfile.protoc | ||
tags: robbydyer/protoc:${{steps.sha.outputs.sha}},robbydyer/protoc:latest | ||
platforms: linux/amd64,linux/arm64/v8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build Docker Images | ||
on: | ||
pull_request: | ||
paths: | ||
- Dockerfile.pibuilder | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
arch: | ||
- aarch64 | ||
- armv7l | ||
- amd64 | ||
os: | ||
- bullseye | ||
- buster | ||
include: | ||
- arch: aarch64 | ||
base: arm64 | ||
- arch: armv7l | ||
base: armhf | ||
- arch: amd64 | ||
base: amd64 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up QEMU | ||
id: qemu | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
image: tonistiigi/binfmt:latest | ||
platforms: all | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASS }} | ||
|
||
- name: get sha256 | ||
id: sha | ||
run: echo "sha=$(sha256sum Dockerfile.pibuilder | awk '{print $1}')" >> $GITHUB_OUTPUT | ||
|
||
- name: Build ${{matrix.arch}} | ||
uses: docker/build-push-action@v4 | ||
with: | ||
push: true | ||
file: Dockerfile.pibuilder | ||
tags: robbydyer/pibuilder-${{matrix.arch}}-${{matrix.os}}:${{steps.sha.outputs.sha}} | ||
build-args: | | ||
BASE=multiarch/debian-debootstrap:${{matrix.base}}-${{matrix.os}}-slim | ||
platforms: linux/amd64,linux/arm64/v8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters