Bump actions/checkout from 5.0.1 to 6.0.1 in the github-actions group #1427
Workflow file for this run
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
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| branches: | |
| - main | |
| - release/** | |
| jobs: | |
| build-multiplatform: | |
| name: build-${{ matrix.platform }} | |
| if: | | |
| github.repository_owner == 'getsentry' && ( | |
| github.event_name == 'pull_request' || | |
| (github.event_name == 'push' && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/heads/release/'))) | |
| ) | |
| permissions: | |
| contents: read | |
| packages: write # Needed to push to GHCR | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-24.04 | |
| platform: amd64 | |
| - os: ubuntu-24.04-arm | |
| platform: arm64 | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Build and push to ghcr.io | |
| if: ${{ github.actor != 'dependabot[bot]' && (github.event_name == 'push' || !github.event.pull_request.head.repo.fork) }} | |
| uses: getsentry/action-build-and-push-images@b172ab61a5f7eabd58bd42ce231b517e79947c01 | |
| with: | |
| image_name: launchpad | |
| platforms: linux/${{ matrix.platform }} | |
| dockerfile_path: "./Dockerfile" | |
| tag_suffix: -${{ matrix.platform }} | |
| ghcr: true | |
| tag_nightly: true | |
| tag_latest: true | |
| create-manifest: | |
| name: Create multi-platform manifest | |
| needs: build-multiplatform | |
| if: | | |
| github.repository_owner == 'getsentry' | |
| && github.event_name == 'push' | |
| && (github.ref == format('refs/heads/{0}', github.event.repository.default_branch) || startsWith(github.ref, 'refs/heads/release/')) | |
| permissions: | |
| contents: read | |
| packages: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - name: Docker Login | |
| run: docker login --username '${{ github.actor }}' --password-stdin ghcr.io <<< "$GHCR_TOKEN" | |
| env: | |
| GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0 | |
| - name: Create multiplatform manifests | |
| run: | | |
| docker buildx imagetools create \ | |
| --tag ghcr.io/getsentry/launchpad:${{ github.sha }} \ | |
| --tag ghcr.io/getsentry/launchpad:nightly \ | |
| ghcr.io/getsentry/launchpad:${{ github.sha }}-amd64 \ | |
| ghcr.io/getsentry/launchpad:${{ github.sha }}-arm64 |