-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iovisor/bcc: add Docker image build/push workflow
* Added .github/workflows/build-push-iovisor-bcc.yaml workflow to build and push the image to ghcr.io/flatcar/bcc:latest * Switch to the ghcr.io/flatcar/bcc:latest image instead of the quay.io/iovisor/bcc image Signed-off-by: Adrian Vladu <[email protected]>
- Loading branch information
Showing
2 changed files
with
49 additions
and
3 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,47 @@ | ||
name: Build and push iovisor/bcc ubuntu 22.04 | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
ghcr_org: | ||
type: string | ||
required: false | ||
default: flatcar | ||
description: | | ||
The name of the GitHub org where the docker images should be pushed. | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build_and_push: | ||
permissions: | ||
packages: write | ||
strategy: | ||
fail-fast: true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
repository: ader1990/bcc | ||
ref: fix_debian_changelog | ||
fetch-depth: 0 | ||
fetch-tags: true | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
- name: Login to GitHub Container Registry (ghcr) | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Build and push image | ||
id: docker_build | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./docker/Dockerfile.ubuntu | ||
platforms: linux/amd64,linux/arm64/v8 | ||
push: true | ||
tags: ghcr.io/${{ inputs.ghcr_org }}/bcc:latest |
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