-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'iovisor:master' into lsan
- Loading branch information
Showing
226 changed files
with
5,254 additions
and
1,389 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/Push container" | ||
description: "Build a BCC CI container and push it when not a pull-request." | ||
|
||
inputs: | ||
os_distro: | ||
description: "OS Disctribution. Ex: ubuntu" | ||
required: true | ||
os_version: | ||
description: "Version of the OS. Ex: 20.04" | ||
required: true | ||
os_nick: | ||
description: "Nickname of the OS. Ex: focal" | ||
required: true | ||
registry: | ||
description: "Registry where to push images" | ||
default: ghcr.io | ||
password: | ||
description: "Password used to log into the docker registry." | ||
push: | ||
description: "Whether or not to push the build image" | ||
type: boolean | ||
default: false | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
# Login against registry except on PR | ||
# https://github.com/docker/login-action | ||
- name: Log into registry ${{ inputs.registry }} | ||
if: ${{ inputs.push == 'true' && github.event_name != 'pull_request' }} | ||
|
||
uses: docker/login-action@v2 | ||
with: | ||
registry: ${{ inputs.registry }} | ||
username: ${{ github.actor }} | ||
password: ${{ inputs.password }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v3 | ||
with: | ||
push: ${{ inputs.push == 'true' && github.event_name != 'pull_request' }} | ||
build-args: | | ||
VERSION=${{ inputs.os_version }} | ||
SHORTNAME=${{ inputs.os_nick }} | ||
file: docker/build/Dockerfile.${{ inputs.os_distro }} | ||
tags: ${{ inputs.registry }}/${{ github.repository }}:${{ inputs.os_distro }}-${{ inputs.os_version }} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Publish Build Containers | ||
|
||
on: | ||
# We want to update this image regularly and when updating master | ||
schedule: | ||
- cron: '00 18 * * *' | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
paths: | ||
- 'docker/build/**' | ||
|
||
permissions: {} | ||
|
||
jobs: | ||
|
||
publish_ghcr: | ||
permissions: | ||
contents: read # to fetch code (actions/checkout) | ||
packages: write # to push container | ||
name: Publish To GitHub Container Registry | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [ | ||
{distro: "ubuntu", version: "18.04", nick: bionic}, | ||
{distro: "ubuntu", version: "20.04", nick: focal}, | ||
{distro: "fedora", version: "34", nick: "f34"}, | ||
{distro: "fedora", version: "36", nick: "f36"} | ||
] | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Build and push | ||
uses: ./.github/actions/build-container | ||
with: | ||
os_distro: ${{ matrix.os.distro }} | ||
os_version: ${{ matrix.os.version }} | ||
os_nick: ${{ matrix.os.nick }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
push: true |
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
Oops, something went wrong.