build(deps): bump github.com/go-delve/delve from 1.26.2 to 1.26.3 (#2… #4832
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| packages: write | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| attestations: write | |
| packages: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5 | |
| - uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0 | |
| - uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0 | |
| - uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - id: vars | |
| run: make ci--env | |
| - id: meta | |
| uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0 | |
| with: | |
| flavor: | | |
| latest=true | |
| tags: | | |
| type=raw,value=${{ steps.vars.outputs.sha }} | |
| - uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0 | |
| id: push | |
| with: | |
| tags: | | |
| ghcr.io/beryju/gravity:latest | |
| ghcr.io/beryju/gravity:${{ steps.vars.outputs.sha }} | |
| push: ${{ github.ref == 'refs/heads/main' }} | |
| platforms: linux/amd64,linux/arm64 | |
| sbom: true | |
| provenance: true | |
| context: . | |
| build-args: | | |
| BUILD=${{ steps.vars.outputs.build }} | |
| GIT_BUILD_HASH=${{ steps.vars.outputs.sha }} | |
| labels: ${{ steps.meta.outputs.labels }} | |
| - uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v3 | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| with: | |
| subject-name: ghcr.io/beryju/gravity | |
| subject-digest: ${{ steps.push.outputs.digest }} | |
| push-to-registry: true | |
| build-debug: | |
| name: Build (debug) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| attestations: write | |
| packages: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5 | |
| - uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a # v4.0.0 | |
| - uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0 | |
| - uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4.1.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - id: vars | |
| run: make ci--env | |
| - id: meta | |
| uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf # v6.0.0 | |
| with: | |
| flavor: | | |
| latest=true | |
| tags: | | |
| type=raw,value=${{ steps.vars.outputs.sha }} | |
| - uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0 | |
| id: push | |
| with: | |
| tags: | | |
| ghcr.io/beryju/gravity:latest-debug | |
| ghcr.io/beryju/gravity:${{ steps.vars.outputs.sha }}-debug | |
| push: ${{ github.ref == 'refs/heads/main' }} | |
| platforms: linux/amd64,linux/arm64 | |
| sbom: true | |
| provenance: true | |
| context: . | |
| build-args: | | |
| BUILD=${{ steps.vars.outputs.build }} | |
| GIT_BUILD_HASH=${{ steps.vars.outputs.sha }} | |
| GRAVITY_BUILD_ARGS=GO_BUILD_FLAGS=-tags=debug | |
| labels: ${{ steps.meta.outputs.labels }} | |
| - uses: actions/attest-build-provenance@a2bbfa25375fe432b6a289bc6b6cd05ecd0c4c32 # v3 | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| with: | |
| subject-name: ghcr.io/beryju/gravity | |
| subject-digest: ${{ steps.push.outputs.digest }} | |
| push-to-registry: true | |
| build-cli: | |
| name: Build CLI | |
| runs-on: ubuntu-latest | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| strategy: | |
| matrix: | |
| arch: [arm64, amd64] | |
| os: [darwin, linux] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5 | |
| - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - run: | | |
| GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} make bin/gravity-cli | |
| build-web: | |
| name: Build Web | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5 | |
| - uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v5 | |
| with: | |
| node-version-file: web/package.json | |
| cache: "npm" | |
| cache-dependency-path: web/package-lock.json | |
| - run: make web-install gen-client-ts web-build |