Commit 37379a4

Eric Bower  ·  2026-10-21 11:26:20 -0400 EDT
parent 00f4477
chore: remove gha
5 files changed,  +0, -204
+0, -21
......@@ -1,21 +0,0 @@
1-name: Lint and run tests
2-
3-description: Lints and runs tests on the codebase, used before builds and on every PR
4-
5-runs:
6- using: composite
7- steps:
8- - name: Set up Go
9- uses: actions/setup-go@v7
10- with:
11- go-version-file: go.mod
12- cache-dependency-path: go.sum
13- - name: Lint the codebase
14- uses: golangci/golangci-lint-action@v9
15- with:
16- version: latest
17- - name: Run tests
18- shell: bash
19- run: |
20- PICO_SECRET="danger" go test -v ./... -cover -race -coverprofile=coverage.out -timeout 5m
21- go tool cover -func=coverage.out -o=coverage.out
+0, -47
......@@ -1,47 +0,0 @@
1-name: Build bouncer
2-
3-on:
4- workflow_dispatch:
5- push:
6- branches:
7- - main
8- tags:
9- - v*
10- paths:
11- - bouncer/**
12- - .github/workflows/bouncer.yml
13-
14-env:
15- REGISTRY: ghcr.io
16-
17-jobs:
18- build:
19- runs-on: ubuntu-26.04
20- steps:
21- - name: Checkout repo
22- uses: actions/checkout@v7
23- - name: Set up Docker Buildx
24- uses: docker/setup-buildx-action@v4
25- - name: Login to the registry
26- uses: docker/login-action@v4
27- with:
28- registry: ${{ env.REGISTRY }}
29- username: ${{ github.actor }}
30- password: ${{ secrets.GITHUB_TOKEN }}
31- - name: Collect image metadata
32- id: meta
33- uses: docker/metadata-action@v6
34- with:
35- images: ${{ env.REGISTRY }}/${{ github.repository }}/bouncer
36- - name: Build and push
37- uses: docker/build-push-action@v7
38- with:
39- context: ./bouncer
40- push: true
41- tags: ${{ steps.meta.outputs.tags }}
42- labels: ${{ steps.meta.outputs.labels }}
43- platforms: |
44- linux/amd64
45- linux/arm64
46- cache-from: type=gha,scope=bouncer
47- cache-to: type=gha,scope=bouncer,mode=max
+0, -74
......@@ -1,74 +0,0 @@
1-name: Test and Build
2-
3-on:
4- workflow_dispatch:
5- push:
6- branches:
7- - main
8- tags:
9- - v*
10-
11-env:
12- REGISTRY: ghcr.io
13-
14-jobs:
15- test:
16- runs-on: ubuntu-26.04
17- steps:
18- - name: Checkout repo
19- uses: actions/checkout@v7
20- - name: Run tests and lint
21- uses: ./.github/actions/test
22- build:
23- runs-on: ubuntu-26.04
24- needs: test
25- steps:
26- - name: Checkout repo
27- uses: actions/checkout@v7
28- # The Dockerfiles cross-compile on the build platform, so no QEMU.
29- - name: Set up Docker Buildx
30- id: buildx
31- uses: docker/setup-buildx-action@v4
32- - name: Login to the registry
33- uses: docker/login-action@v4
34- with:
35- registry: ${{ env.REGISTRY }}
36- username: ${{ github.actor }}
37- password: ${{ secrets.GITHUB_TOKEN }}
38- - name: Collect image metadata
39- id: meta
40- uses: docker/metadata-action@v6
41- # The layer cache doesn't keep RUN --mount=type=cache, so the Go module
42- # and build caches are saved separately and loaded into the builder.
43- - name: Cache Go modules and builds
44- id: cache
45- uses: actions/cache@v5
46- with:
47- path: ${{ runner.temp }}/go-cache
48- key: go-docker-${{ hashFiles('go.sum') }}-${{ github.sha }}
49- restore-keys: |
50- go-docker-${{ hashFiles('go.sum') }}-
51- go-docker-
52- - name: Load Go caches into the builder
53- uses: reproducible-containers/buildkit-cache-dance@v3
54- with:
55- builder: ${{ steps.buildx.outputs.name }}
56- cache-map: |
57- {
58- "${{ runner.temp }}/go-cache/pkg": "/go/pkg/",
59- "${{ runner.temp }}/go-cache/build": "/root/.cache/"
60- }
61- scratch-dir: ${{ runner.temp }}/cache-dance
62- skip-extraction: ${{ steps.cache.outputs.cache-hit }}
63- - name: Build and push
64- uses: docker/bake-action@v7
65- env:
66- REGISTRY: ${{ env.REGISTRY }}
67- TAGS: ${{ steps.meta.outputs.tag-names }}
68- GHA_CACHE: "true"
69- with:
70- source: .
71- files: |
72- ./docker-bake.hcl
73- cwd://${{ steps.meta.outputs.bake-file-labels }}
74- push: true
+0, -47
......@@ -1,47 +0,0 @@
1-name: Build caddy
2-
3-on:
4- workflow_dispatch:
5- push:
6- branches:
7- - main
8- tags:
9- - v*
10- paths:
11- - caddy/**
12- - .github/workflows/caddy.yml
13-
14-env:
15- REGISTRY: ghcr.io
16-
17-jobs:
18- build:
19- runs-on: ubuntu-26.04
20- steps:
21- - name: Checkout repo
22- uses: actions/checkout@v7
23- - name: Set up Docker Buildx
24- uses: docker/setup-buildx-action@v4
25- - name: Login to the registry
26- uses: docker/login-action@v4
27- with:
28- registry: ${{ env.REGISTRY }}
29- username: ${{ github.actor }}
30- password: ${{ secrets.GITHUB_TOKEN }}
31- - name: Collect image metadata
32- id: meta
33- uses: docker/metadata-action@v6
34- with:
35- images: ${{ env.REGISTRY }}/${{ github.repository }}/caddy
36- - name: Build and push
37- uses: docker/build-push-action@v7
38- with:
39- context: ./caddy
40- push: true
41- tags: ${{ steps.meta.outputs.tags }}
42- labels: ${{ steps.meta.outputs.labels }}
43- platforms: |
44- linux/amd64
45- linux/arm64
46- cache-from: type=gha,scope=caddy
47- cache-to: type=gha,scope=caddy,mode=max
+0, -15
......@@ -1,15 +0,0 @@
1-name: Test PRs
2-
3-on:
4- pull_request:
5- branches:
6- - main
7-
8-jobs:
9- test:
10- runs-on: ubuntu-26.04
11- steps:
12- - name: Checkout repo
13- uses: actions/checkout@v7
14- - name: Run tests and lint
15- uses: ./.github/actions/test