Merge branch 'refs/heads/upstream-HEAD' into repo-HEAD #148
Workflow file for this run
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: Embedded LLVM | |
on: | |
push: | |
paths: | |
- docker/Dockerfile.llvm | |
- cmake/embed/* | |
- .github/workflows/embedded_llvm.yml | |
pull_request: | |
paths: | |
- docker/Dockerfile.llvm | |
- cmake/embed/* | |
- .github/workflows/embedded_llvm.yml | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
publish_llvm_build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
llvm_version: [12] | |
base: [xenial, bionic, focal] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Build container | |
run: > | |
docker build | |
-t quay.io/iovisor/bpftrace-llvm:${{ matrix.base }}_${{ matrix.llvm_version }} | |
-t quay.io/iovisor/bpftrace-llvm:${{ matrix.base }}_${{ matrix.llvm_version }}_$(date +%s) | |
-f docker/Dockerfile.llvm | |
--build-arg BASE=${{ matrix.base }} | |
--build-arg BULD_TYPE="Release" | |
--build-arg LLVM_VERSION=${{ matrix.llvm_version }} | |
. | |
- name: Login quay.io | |
if: > | |
(github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && | |
github.repository == 'iovisor/bpftrace' | |
env: | |
QUAY_USER: "iovisor+bpftrace_buildbot" | |
QUAY_TOKEN: ${{ secrets.QUAY_TOKEN }} | |
run: 'echo "${QUAY_TOKEN}" | docker login -u="${QUAY_USER}" --password-stdin quay.io' | |
- name: Publish container | |
if: > | |
(github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) && | |
github.repository == 'iovisor/bpftrace' | |
run: docker push --all-tags quay.io/iovisor/bpftrace-llvm |