Skip to content

Merge pull request #138 from mshitrit/stop-remediation-when-node-not-… #123

Merge pull request #138 from mshitrit/stop-remediation-when-node-not-…

Merge pull request #138 from mshitrit/stop-remediation-when-node-not-… #123

Workflow file for this run

name: Publish Container Images
on:
push:
branches:
- main
tags:
- 'v*'
jobs:
push_to_registry:
name: Build and push images to quay.io/medik8s
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Log in to Quay.io
uses: docker/login-action@v2
with:
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
registry: quay.io
- name: Build and push operator and bundle images, using version 0.0.1, for pushes to main
if: ${{ github.ref_type != 'tag' }}
run: make container-build-community container-push
- name: Build and push versioned CSV and images, for tags
if: ${{ github.ref_type == 'tag' }}
# remove leading 'v' from tag!
run: export VERSION=$(echo $GITHUB_REF_NAME | sed 's/v//') && make container-build-community container-push
- name: Build and push index image with versioned NHC + SNR images
if: ${{ github.ref_type != 'tag' }}
run: |
# get script from github
NAME=build-nhc-snr.sh
curl https://raw.githubusercontent.com/medik8s/tools/main/scripts/${NAME} -o $NAME
chmod +x $NAME
# set version vars
VERSION=9.9.9-ci
export NHC_VERSION=${VERSION}
export SNR_VERSION=${VERSION}
export INDEX_VERSION=${VERSION}
# build and push images
./$NAME --skip-deploy
- name: Create release with manifests, for tags
if: ${{ github.ref_type == 'tag' }}
# https://github.com/marketplace/actions/github-release-create-update-and-upload-assets
uses: meeDamian/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
draft: true
body: |
# Self Node Remediation ${{ github.ref_name }}
## Notable Changes
* TODO
## Release Artifacts
### Images
* Operator: quay.io/medik8s/self-node-remediation-operator:${{ github.ref_name }}
* Bundle: quay.io/medik8s/self-node-remediation-operator-bundle:${{ github.ref_name }}
* Catalog aka Index: quay.io/medik8s/self-node-remediation-operator-catalog:${{ github.ref_name }}
### Source code and OLM manifests
Please find the source code and the OLM manifests in the `Assets` section below.
gzip: folders
files: >
Manifests:bundle/