Build bcc images self-hosted #3
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
name: Build bcc images self-hosted | |
on: | |
workflow_dispatch: {} | |
permissions: | |
contents: read | |
jobs: | |
deploy: | |
strategy: | |
fail-fast: false | |
matrix: | |
bcc-version: ["v0.28.0", "v0.27.0", "v0.26.0", "v0.25.0", "v0.24.0"] | |
runs-on: arc-runner-set | |
steps: | |
- uses: actions/checkout@v3 | |
# Build docker images | |
- | |
name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- | |
name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- | |
name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- | |
name: Build and push image | |
id: docker_build | |
uses: docker/build-push-action@v4 | |
with: | |
build-args: | | |
BCC_VERSION=${{ matrix.bcc-version }} | |
context: . | |
file: ./docker/Dockerfile.bcc | |
platforms: linux/amd64,linux/arm64/v8 | |
push: true | |
tags: ${{ secrets.DOCKERHUB_USERNAME }}/ubuntu-bcc:${{ matrix.bcc-version }} |