on_pr: 150 #590
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
| name: on_pr | |
| run-name: "on_pr: ${{ github.event.pull_request.number }}" | |
| on: | |
| pull_request: | |
| permissions: | |
| actions: read # required by BitGo/build-system | |
| contents: read # required by BitGo/build-system | |
| id-token: write # required by BitGo/build-system | |
| pull-requests: write # required by Grype PR commenter | |
| packages: read # required for ArgoCD deploy | |
| jobs: | |
| build-and-test: | |
| name: Build & Test (CI) | |
| uses: ./.github/workflows/build-and-test.yaml | |
| secrets: | |
| fossa-api-key: ${{ secrets.FOSSA_API_KEY }} | |
| build-docker-image: | |
| name: Build the Docker Image | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Get AMD64 SHA digest | |
| run: | | |
| docker pull --platform linux/amd64 node:22.1.0-alpine | |
| echo "AMD64 SHA256 Digest:" | |
| docker inspect --format='{{index .RepoDigests 0}}' node:22.1.0-alpine | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| platforms: linux/amd64 | |
| push: false | |
| tags: | | |
| ghcr.io/bitgo/advanced-wallets:${{ github.sha }} | |
| build-args: | | |
| BUILD_VERSION=${{ github.sha }} | |
| BUILD_DATE=${{ github.event.repository.updated_at }} | |
| VCS_REF=${{ github.sha }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |