Merge pull request #345 from slintes/console-v1 #288
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: Post Submit | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
pull-requests: read | |
jobs: | |
push_to_registry: | |
name: Build and push unversioned 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 CSV version v0.0.1 with latest images | |
run: make container-build-k8s container-push | |
- name: Build and push index image with versioned NHC + SNR images | |
# broken atm because of mandatory previous release... | |
# we need to skip replaces field when version = 9.9.9-ci | |
if: false | |
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 |