Skip to content

Commit 33a9364

Browse files
committed
ci(github-actions): do Docker builds for deployments
And do Tailscale auth flow over OIDC workload federation to lessen the OAuth client secrets to manage btw. Signed-off-by: Andrei Jiroh Halili <[email protected]>
1 parent 3ce845f commit 33a9364

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
name: Build and push Docker images
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
2727

2828
- name: Log in to GitHub Container Registry
2929
uses: docker/login-action@v2
@@ -44,11 +44,16 @@ jobs:
4444
uses: docker/metadata-action@v5
4545
with:
4646
images: |
47-
ghcr.io/recaptime-dev/infra/proxyparty-caddy
48-
registry.gitlab.com/recaptime-dev/infra/proxyparty-caddy
47+
ghcr.io/recaptime-dev/proxyparty-caddy/caddy-builds
48+
registry.gitlab.com/recaptime-dev/proxyparty-caddy/caddy-builds
4949
tags: |
5050
type=ref,event=branch,prefix=branch-
5151
type=sha,format=long,prefix=commit-
52+
- name: Set up QEMU
53+
uses: docker/setup-qemu-action@v3
54+
- name: Set up Docker Buildx
55+
id: buildx
56+
uses: docker/setup-buildx-action@v3
5257

5358
- name: Build and push proxyparty-caddy image
5459
id: proxyparty-caddy-image
@@ -59,6 +64,7 @@ jobs:
5964
push: true
6065
tags: ${{ steps.meta.outputs.tags }}
6166
labels: ${{ steps.meta.outputs.labels }}
67+
platforms: linux/amd64,linux/arm64
6268

6369
production-azure:
6470
name: Dedicated Caddy server on GCP Compute Engine
@@ -67,7 +73,7 @@ jobs:
6773
name: production
6874
url: https://proxyparty.recaptime.dev
6975
steps:
70-
- uses: actions/checkout@v4
76+
- uses: actions/checkout@v6
7177

7278
- name: Setup Tailscale (using OIDC workload federation)
7379
uses: tailscale/github-action@v4

0 commit comments

Comments
 (0)