Skip to content

feat: add shortnames for CRDs (#14) #15

feat: add shortnames for CRDs (#14)

feat: add shortnames for CRDs (#14) #15

Workflow file for this run

name: Build Container Image
on:
push:
tags:
- 'v*'
jobs:
docker:
name: docker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
with:
platforms: amd64
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/metadata-action@v4
id: meta
with:
images: ghcr.io/${{ github.repository }}
- uses: docker/build-push-action@v4
with:
file: "Dockerfile"
context: .
platforms: linux/amd64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Install operator-sdk
run: |
curl -L https://github.com/operator-framework/operator-sdk/releases/download/v1.31.0/operator-sdk_linux_amd64 -o /usr/local/bin/operator-sdk
chmod +x /usr/local/bin/operator-sdk
- name: Build and push the bundle
run: |
TAG_VERSION=${{ github.ref_name }}
# remove "v" character at the first of the version.
VERSION="${TAG_VERSION#v}"
make bundle bundle-build bundle-push IMAGE_TAG_BASE=ghcr.io/${{ github.repository }} VERSION=$VERSION IMG=ghcr.io/${{ github.repository }}:$TAG_VERSION