image-publisher #11
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: image-publisher | |
on: | |
workflow_dispatch: | |
inputs: | |
IMAGE_TAG: | |
required: true | |
default: latest | |
jobs: | |
docker-push: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
- uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: '^1.13.1' | |
- name: Install operator-sdk | |
run: | | |
export GOPATH=$HOME/go | |
export GOBIN=$(go env GOPATH)/bin | |
git clone https://github.com/operator-framework/operator-sdk | |
cd operator-sdk | |
git checkout master | |
make install | |
- name: Build and push docker images | |
env: | |
VERSION: ${{ github.event.inputs.IMAGE_TAG }} | |
IMAGE: ghcr.io/teamziax/gitops-operator/gitops-operator | |
run: | | |
make docker-build docker-push | |
make bundle | |
make bundle-build bundle-push | |
make opm | |
make catalog-build catalog-push |