DNS enhancement features [BP 1.6.2] (#394) #36
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: [v*] | |
env: | |
WF_REGISTRY_USER: netobserv+github_ci | |
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: validate tag | |
run: | | |
tag=`git describe --exact-match --tags 2> /dev/null` | |
if [[ $tag =~ ^v[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: docker login to quay.io | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ env.WF_REGISTRY_USER }} | |
password: ${{ secrets.QUAY_SECRET }} | |
registry: quay.io | |
- name: build and push manifest with images | |
run: MULTIARCH_TARGETS="${{ env.WF_MULTIARCH_TARGETS }}" IMAGE_ORG=${{ env.WF_ORG }} VERSION=${{ env.tag }} make images |