build(deps): bump github.com/coredns/coredns from 1.13.1 to 1.13.2 #4411
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: 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5 | |
| - uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 | |
| - uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3 | |
| - uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - id: vars | |
| run: make ci--env | |
| - id: meta | |
| uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0 | |
| with: | |
| flavor: | | |
| latest=true | |
| tags: | | |
| type=raw,value=${{ steps.vars.outputs.sha }} | |
| - uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.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@977bb373ede98d70efdf65b84cb5f73e068dcc2a # 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5 | |
| - uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3 | |
| - uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3 | |
| - uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - id: vars | |
| run: make ci--env | |
| - id: meta | |
| uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0 | |
| with: | |
| flavor: | | |
| latest=true | |
| tags: | | |
| type=raw,value=${{ steps.vars.outputs.sha }} | |
| - uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.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@977bb373ede98d70efdf65b84cb5f73e068dcc2a # 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5 | |
| - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # 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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v5 | |
| - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # 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 |