Pr/test/v1.16.5 #1
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: Publish Intility | |
on: | |
pull_request: {} | |
jobs: | |
set-olm-tag: | |
runs-on: ubuntu-20.04 | |
outputs: | |
olm-tag: ${{ steps.set.outputs.OLM_TAG }} | |
steps: | |
- uses: actions/checkout@v1 | |
- id: set | |
name: Set OLM Tag | |
run: | | |
VERSION="1.16.5" | |
set -o pipefail | |
olm_tag=$(yq .spec.install.spec.deployments[0].spec.template.spec.containers[0].image bundles/cilium.v${VERSION#v}/manifests/cilium.clusterserviceversion.yaml | cut -d ':' -f 2) | |
echo "::set-output name=OLM_TAG::${olm_tag}" | |
build-and-publish: | |
if: needs.set-olm-tag.outputs.olm-tag != '' | |
env: | |
PREFLIGHT_VERSION: 1.2.1 | |
OLM_TAG: ${{ needs.set-olm-tag.outputs.olm-tag }} | |
name: Build Images and Validate Images | |
runs-on: ubuntu-20.04 | |
needs: set-olm-tag | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 #v3.0.0 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 #v3.0.0 | |
- name: Login to ghcr | |
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d #v3.0.0 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Push to Quay.io | |
uses: docker/build-push-action@0565240e2d4ab88bba5387d719585280857ece09 #v5.0.0 | |
with: | |
provenance: false | |
context: ./operator/cilium.v1.16.5/ | |
push: true | |
tags: ghcr.io/intility/olm-for-cilium:${{ env.OLM_TAG }} |