image-publisher #7
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 }} | |
- name: Install operator-sdk | |
run: brew install operator-sdk | |
- 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 |