Prepare release v1.6.1-crc1 #77
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: release to quay.io | |
on: | |
push: | |
tags: ['*'] | |
env: | |
WF_REGISTRY_USER: netobserv+github_ci | |
WF_REGISTRY: quay.io/netobserv | |
WF_IMAGE: network-observability-operator | |
WF_ORG: netobserv | |
WF_MULTIARCH_TARGETS: amd64 arm64 ppc64le s390x | |
jobs: | |
push-image: | |
name: push image | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: ['1.22'] | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: docker login to quay.io | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ env.WF_REGISTRY_USER }} | |
password: ${{ secrets.QUAY_SECRET }} | |
registry: quay.io | |
- name: validate tag | |
run: | | |
tag=`git describe --exact-match --tags 2> /dev/null` | |
if [[ $tag =~ ^[0-9]+\.[0-9]+\.[0-9]+(-crc[0-9]+|-community)$ ]]; then | |
echo "$tag is a valid release tag" | |
set -e | |
echo "tag=$tag" >> $GITHUB_ENV | |
else | |
echo "$tag is NOT a valid release tag" | |
exit 1 | |
fi | |
- name: install make | |
run: sudo apt-get install make | |
- name: set up go 1.x | |
uses: actions/setup-go@v3 | |
with: | |
go-version: ${{ matrix.go }} | |
- name: build operator | |
run: | | |
MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" IMAGE_ORG=${{ env.WF_ORG }} IMAGE=${{ env.WF_REGISTRY }}/${{ env.WF_IMAGE }}:${{ env.tag }} make image-build | |
- name: push operator | |
run: | | |
MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" IMAGE_ORG=${{ env.WF_ORG }} IMAGE=${{ env.WF_REGISTRY }}/${{ env.WF_IMAGE }}:${{ env.tag }} make image-push | |
- name: build and push manifest | |
run: | | |
MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" IMAGE_ORG=${{ env.WF_ORG }} IMAGE=${{ env.WF_REGISTRY }}/${{ env.WF_IMAGE }}:${{ env.tag }} make manifest-build manifest-push | |
- name: build bundle | |
run: IMAGE_ORG=${{ env.WF_ORG }} BUNDLE_VERSION=${{ env.tag }} make bundle-build | |
- name: push bundle to quay.io | |
run: IMAGE_ORG=${{ env.WF_ORG }} BUNDLE_VERSION=${{ env.tag }} make bundle-push | |
- name: build catalog | |
run: IMAGE_ORG=${{ env.WF_ORG }} BUNDLE_VERSION=${{ env.tag }} make catalog-build | |
- name: push catalog to quay.io | |
run: IMAGE_ORG=${{ env.WF_ORG }} BUNDLE_VERSION=${{ env.tag }} make catalog-push |