Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.github: run jobs in parallel #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
116 changes: 24 additions & 92 deletions .github/workflows/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,28 @@ jobs:
build-and-push:
name: Build and push all images
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- name: maker-image

- name: tester-image

- name: kube-test-image

- name: compilers-image
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the images here depend on compilers image, so you can actually update them in one go, as you can get the git tree hash of the compilers image once you have committed the changes locally.


- name: bpftool-image

- name: iproute2-image

- name: llvm-image

- name: startup-script-image

- name: ca-certificates-image

- name: checkpatch-image
steps:
- uses: actions/checkout@v1
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
Expand All @@ -20,102 +42,12 @@ jobs:
entrypoint: make
args: lint
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
name: Run make maker-image
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD_CI }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME_CI }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSOWRD_IMAGE_TOOLS }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME_IMAGE_TOOLS }}
with:
entrypoint: make
args: maker-image PUSH=true
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
name: Run make tester-image
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD_CI }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME_CI }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSOWRD_IMAGE_TOOLS }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME_IMAGE_TOOLS }}
with:
entrypoint: make
args: tester-image PUSH=true
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
name: Run make kube-test-image
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD_CI }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME_CI }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSOWRD_IMAGE_TOOLS }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME_IMAGE_TOOLS }}
with:
entrypoint: make
args: kube-test-image PUSH=true
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
name: Run make compilers-image
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD_CI }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME_CI }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSOWRD_IMAGE_TOOLS }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME_IMAGE_TOOLS }}
with:
entrypoint: make
args: compilers-image PUSH=true
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
name: Run make bpftool-image
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD_CI }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME_CI }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSOWRD_IMAGE_TOOLS }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME_IMAGE_TOOLS }}
with:
entrypoint: make
args: bpftool-image PUSH=true
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
name: Run make iproute2-image
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD_CI }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME_CI }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSOWRD_IMAGE_TOOLS }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME_IMAGE_TOOLS }}
with:
entrypoint: make
args: iproute2-image PUSH=true
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
name: Run make llvm-image
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD_CI }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME_CI }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSOWRD_IMAGE_TOOLS }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME_IMAGE_TOOLS }}
with:
entrypoint: make
args: llvm-image PUSH=true
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
name: Run make startup-script-image
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD_CI }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME_CI }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSOWRD_IMAGE_TOOLS }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME_IMAGE_TOOLS }}
with:
entrypoint: make
args: startup-script-image PUSH=true
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
name: Run make ca-certificates-image
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD_CI }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME_CI }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSOWRD_IMAGE_TOOLS }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME_IMAGE_TOOLS }}
with:
entrypoint: make
args: ca-certificates-image PUSH=true
- uses: docker://docker.io/cilium/image-maker:8fb8f8325d966505552183f756eae4e3cb60d195
name: Run make checkpatch-image
name: Run make ${{ matrix.name }}
env:
DOCKER_HUB_PASSWORD: ${{ secrets.DOCKER_HUB_PASSWORD_CI }}
DOCKER_HUB_USERNAME: ${{ secrets.DOCKER_HUB_USERNAME_CI }}
QUAY_PASSWORD: ${{ secrets.QUAY_PASSOWRD_IMAGE_TOOLS }}
QUAY_USERNAME: ${{ secrets.QUAY_USERNAME_IMAGE_TOOLS }}
with:
entrypoint: make
args: checkpatch-image PUSH=true
args: ${{ matrix.name }} PUSH=true