name: Release Backup Pvc on: workflow_dispatch: pull_request: types: [edited, opened, reopened, synchronize] paths: - 'backup/pvc/**' push: branches: - master - main tags: ["*"] paths: - 'backup/pvc/**' jobs: build-and-release-backup: name: Release Backup Pvc, build, bump and push new image runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4 - name: Check envs run: make -C backup/pvc check-env - name: Build the e2e image run: make -C backup/pvc docker-build-e2e - name: Run the e2e tests run: make -C backup/pvc docker-e2e - name: Configure Git if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' run: | git config user.name "$GITHUB_ACTOR" git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - name: Bump the version if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' shell: bash run: | make -C backup/pvc sembump make -C backup/pvc bump-version - name: Login to Quay.io if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3 with: registry: quay.io username: ${{ secrets.QUAYIO_USERNAME }} password: ${{ secrets.QUAYIO_TOKEN }} - name: Set up QEMU (for cross-arch emulation) if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' uses: docker/setup-qemu-action@96fe6ef7f33517b61c61be40b68a1882f3264fb8 # v4.2.0 - name: Set up Docker Buildx if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 - name: Build and push multi-arch image to Quay.io (linux/amd64 + linux/arm64) if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' run: make -C backup/pvc docker-release