diff options
Diffstat (limited to '.github/workflows/docker.yml')
| -rw-r--r-- | .github/workflows/docker.yml | 31 |
1 files changed, 26 insertions, 5 deletions
diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index bfb095c..c3a532f 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -26,11 +26,29 @@ jobs: fetch-tags: true fetch-depth: 0 - - uses: actions/setup-go@v5 + - name: Set up Homebrew + uses: Homebrew/actions/setup-homebrew@master + + - name: Setup Homebrew cellar cache + uses: actions/cache@v4 with: - go-version: '1.24.x' + path: | + /home/linuxbrew/.linuxbrew/Cellar + /home/linuxbrew/.linuxbrew/bin + /home/linuxbrew/.linuxbrew/etc + /home/linuxbrew/.linuxbrew/include + /home/linuxbrew/.linuxbrew/lib + /home/linuxbrew/.linuxbrew/opt + /home/linuxbrew/.linuxbrew/sbin + /home/linuxbrew/.linuxbrew/share + /home/linuxbrew/.linuxbrew/var + key: ${{ runner.os }}-go-homebrew-cellar-${{ hashFiles('go.sum') }} + restore-keys: | + ${{ runner.os }}-go-homebrew-cellar- - - uses: ko-build/setup-ko@v0.8 + - name: Install Brew dependencies + run: | + brew bundle - name: Log into registry uses: docker/login-action@v3 @@ -48,11 +66,14 @@ jobs: - name: Build and push id: build run: | - go run ./cmd/containerbuild --docker-repo ghcr.io/techarohq/anubis --slog-level debug + npm ci + npm run container + env: + DOCKER_REPO: ghcr.io/techarohq/anubis + SLOG_LEVEL: debug - name: Generate artifact attestation uses: actions/attest-build-provenance@v2 - if: ${{github.event_name == 'pull_request'}} with: subject-name: ghcr.io/techarohq/anubis subject-digest: ${{ steps.build.outputs.digest }} |
