diff --git a/.github/workflows/build-images.yaml b/.github/workflows/build-images.yaml index ddd9c114..5bf2daad 100644 --- a/.github/workflows/build-images.yaml +++ b/.github/workflows/build-images.yaml @@ -69,6 +69,9 @@ jobs: run: make bundle REGISTRY=${{ env.IMG_REGISTRY_HOST }} ORG=${{ env.IMG_REGISTRY_ORG }} IMAGE_TAG=latest VERSION=0.0.0 - name: Git diff run: git diff + - name: Verify manifests and bundle + if: startsWith(github.ref, 'refs/tags/v') || github.ref_name == env.MAIN_BRANCH_NAME + run: make verify-manifests verify-bundle - name: Build Image id: build-image uses: redhat-actions/buildah-build@v2 diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index fec985b5..512f5aad 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -45,3 +45,17 @@ jobs: - uses: actions/checkout@v2 - name: Verify manifests run: make verify-manifests + verify-bundle: + name: Verify bundle + runs-on: ubuntu-latest + steps: + - name: Set up Go 1.16.x + uses: actions/setup-go@v2 + with: + go-version: 1.16.x + id: go + - name: Check out code + uses: actions/checkout@v2 + - name: Run make verify-bundle + run: | + make verify-bundle diff --git a/Makefile b/Makefile index 840ad115..3e24181c 100644 --- a/Makefile +++ b/Makefile @@ -278,3 +278,8 @@ verify-manifests: manifests ## Verify manifests update. git diff --exit-code ./config [ -z "$$(git ls-files --other --exclude-standard --directory --no-empty-directory ./config)" ] +.PHONY: verify-bundle +verify-bundle: bundle ## Verify bundle update. + git diff --exit-code ./bundle + [ -z "$$(git ls-files --other --exclude-standard --directory --no-empty-directory ./bundle)" ] +