Revert "chore: temporarily disable part of a workflow" #52
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: Apicurio Registry Operator - Build and publish from main | |
on: | |
push: | |
branches: | |
- main | |
env: | |
IMAGE_REGISTRY: quay.io | |
# TODO Regenerate install/install.yaml file | |
jobs: | |
main: | |
name: Build and publish from main | |
runs-on: ubuntu-latest | |
if: github.repository_owner == 'Apicurio' | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v2 | |
with: | |
go-version: '^1.17.10' | |
- run: go version | |
- name: Setup the environment | |
run: .github/scripts/setup.sh | |
- name: Setup Docker | |
run: | | |
docker login -u "${{ secrets.QUAY_USERNAME }}" -p "${{ secrets.QUAY_PASSWORD }}" "${IMAGE_REGISTRY}" | |
- name: Build | |
run: make build bundle bundle-build dist | |
- name: Test Before | |
run: CI_BUILD=true .github/scripts/test_operator.sh | |
- name: Publish | |
run: make docker-push bundle-push catalog-build catalog-push | |
- name: Test After | |
run: .github/scripts/test_operator.sh | |
- name: Collect logs | |
if: failure() | |
run: .github/scripts/collect_logs.sh | |
- name: Upload tests logs artifacts | |
if: failure() | |
uses: actions/[email protected] | |
with: | |
name: tests-logs | |
path: artifacts |