Add e2e watch role for deployment RBAC in tests #13
This file contains hidden or 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: Build and Push Multi-Arch Images | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release-* | |
| tags: | |
| - 'v*' | |
| paths-ignore: | |
| - 'docs/**' | |
| - '**.md' | |
| jobs: | |
| build-push-multi-arch: | |
| name: Build and push multi-arch operator image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Compute image tag | |
| id: tag | |
| run: | | |
| if [[ "${GITHUB_REF}" == refs/tags/v* ]]; then | |
| echo "value=${GITHUB_REF_NAME}" >> "${GITHUB_OUTPUT}" | |
| else | |
| echo "value=$(date -u +%Y%m%d-%H%M%S)" >> "${GITHUB_OUTPUT}" | |
| fi | |
| - name: Set up QEMU for cross-platform builds | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Log in to Quay.io | |
| uses: docker/login-action@v3 | |
| with: | |
| registry: quay.io | |
| username: ${{ secrets.QUAY_USERNAME }} | |
| password: ${{ secrets.QUAY_PASSWORD }} | |
| - name: Build and push multi-arch operator image | |
| run: make build-push-multi-arch | |
| env: | |
| IMAGE_TAG: ${{ steps.tag.outputs.value }} |