aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/docker-pr.yml
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2025-03-28 14:55:25 -0400
committerGitHub <noreply@github.com>2025-03-28 14:55:25 -0400
commit937f1dd330294801411b78ab497073f36ebedd47 (patch)
tree7ff7052a1d3721970abb655dcec191a510b28b5b /.github/workflows/docker-pr.yml
parentbb4f49cfd94783111e2fbed99b4ea7a2077fa0bf (diff)
downloadanubis-937f1dd330294801411b78ab497073f36ebedd47.tar.xz
anubis-937f1dd330294801411b78ab497073f36ebedd47.zip
all: do not commit generated JS/CSS to source control (#148)
Closes #125 Closes #40 Among other things, this moves all of the asset generation to run within the context of an npm script. Developer documentation stubs have been added so that people can get started more easily. The top-level Dockerfile (which is no longer used in production) has been removed as its presence has been causing confusion. This changeset will break it anyways. These changes will make for less "repo churn" as the static assets are built and rebuilt, at the cost of making the build step more complicated for downstream packagers. If this becomes a burden, we can explore making a "release tarball" that contains pre-massaged outputs.
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:"