aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/docker-pr.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/docker-pr.yml')
-rw-r--r--.github/workflows/docker-pr.yml29
1 files changed, 25 insertions, 4 deletions
diff --git a/.github/workflows/docker-pr.yml b/.github/workflows/docker-pr.yml
index 8461366..b124f75 100644
--- a/.github/workflows/docker-pr.yml
+++ b/.github/workflows/docker-pr.yml
@@ -20,11 +20,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: Docker meta
id: meta
@@ -35,9 +53,12 @@ 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:
PULL_REQUEST_ID: ${{ github.event.number }}
+ DOCKER_REPO: ghcr.io/techarohq/anubis
+ SLOG_LEVEL: debug
- run: |
echo "Test this with:"