Skip to content

Test version change #27

Test version change

Test version change #27

Workflow file for this run

name: images
on:
pull_request:
push:
branches: [ v1alpha1 ]
jobs:
push-image:
name: Push operator container images
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- uses: actions/setup-go@main
with:
go-version-file: go.mod
cache: true
- uses: ./.github/compute-version
id: version
- name: build and publish images to external registry
uses: ./.github/publish-images
if: github.event_name == 'push'
with:
image_registry: ${{ vars.IMG_BASE }}
registry_login: ${{ secrets.BOT_NAME }}
registry_token: ${{ secrets.BOT_TOKEN }}
version: ${{ steps.version.outputs.version }}
- name: build images for PR checks
uses: ./.github/publish-images
if: github.event_name != 'push'
with:
image_registry: "localhost:5001"
version: ${{ steps.version.outputs.version }}