Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/frontend"
directories:
- "/frontend"
- "/e2e"
groups:
minor-patch:
update-types:
Expand All @@ -21,7 +23,9 @@ updates:
interval: "daily"

- package-ecosystem: "docker"
directory: "/"
directories:
- "/"
- "/frontend"
schedule:
interval: "daily"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
run: go mod download

- name: Setup sqlc
uses: sqlc-dev/setup-sqlc@v5
uses: sqlc-dev/setup-sqlc@bac53b7fb28c039a6c7f5736fd1e89744021bdd6 # v5.0.0
with:
sqlc-version: "1.31.1"

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
# branches:
# - main

permissions:
contents: read

jobs:
test:
timeout-minutes: 30
Expand Down
29 changes: 27 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ on:
- cron: "0 0 * * *"

permissions:
contents: write
packages: write
contents: read

jobs:
create-release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -29,6 +30,8 @@ jobs:
tag_name: nightly

generate-metadata:
permissions:
contents: read
runs-on: ubuntu-latest
needs: create-release
outputs:
Expand All @@ -52,6 +55,8 @@ jobs:
echo "BUILD_TAGS=$GIN_BUILD_TAGS" >> "$GITHUB_OUTPUT"

binary-build:
permissions:
contents: read
runs-on: ubuntu-latest
needs:
- create-release
Expand Down Expand Up @@ -101,6 +106,8 @@ jobs:
path: tinyauth-amd64

binary-build-arm:
permissions:
contents: read
runs-on: ubuntu-24.04-arm
needs:
- create-release
Expand Down Expand Up @@ -150,6 +157,9 @@ jobs:
path: tinyauth-arm64

image-build:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
needs:
- create-release
Expand Down Expand Up @@ -208,6 +218,9 @@ jobs:
retention-days: 1

image-build-distroless:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
needs:
- create-release
Expand Down Expand Up @@ -268,6 +281,9 @@ jobs:
retention-days: 1

image-build-arm:
permissions:
contents: read
packages: write
runs-on: ubuntu-24.04-arm
needs:
- create-release
Expand Down Expand Up @@ -326,6 +342,9 @@ jobs:
retention-days: 1

image-build-arm-distroless:
permissions:
contents: read
packages: write
runs-on: ubuntu-24.04-arm
needs:
- create-release
Expand Down Expand Up @@ -386,6 +405,8 @@ jobs:
retention-days: 1

image-merge:
permissions:
packages: write
runs-on: ubuntu-latest
needs:
- image-build
Expand Down Expand Up @@ -425,6 +446,8 @@ jobs:
$(printf 'ghcr.io/${{ github.repository_owner }}/tinyauth@sha256:%s ' *)

image-merge-distroless:
permissions:
packages: write
runs-on: ubuntu-latest
needs:
- image-build-distroless
Expand Down Expand Up @@ -464,6 +487,8 @@ jobs:
$(printf 'ghcr.io/${{ github.repository_owner }}/tinyauth@sha256:%s ' *)

update-release:
permissions:
contents: write
runs-on: ubuntu-latest
needs:
- binary-build
Expand Down
27 changes: 25 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ on:
- "v*"

permissions:
contents: write
packages: write
contents: read

jobs:
generate-metadata:
permissions:
contents: read
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.metadata.outputs.VERSION }}
Expand All @@ -33,6 +34,8 @@ jobs:
echo "BUILD_TAGS=$GIN_BUILD_TAGS" >> "$GITHUB_OUTPUT"

binary-build:
permissions:
contents: read
runs-on: ubuntu-latest
needs:
- generate-metadata
Expand Down Expand Up @@ -79,6 +82,8 @@ jobs:
path: tinyauth-amd64

binary-build-arm:
permissions:
contents: read
runs-on: ubuntu-24.04-arm
needs:
- generate-metadata
Expand Down Expand Up @@ -125,6 +130,9 @@ jobs:
path: tinyauth-arm64

image-build:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
needs:
- generate-metadata
Expand Down Expand Up @@ -181,6 +189,9 @@ jobs:
retention-days: 1

image-build-distroless:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
needs:
- generate-metadata
Expand Down Expand Up @@ -239,6 +250,9 @@ jobs:
retention-days: 1

image-build-arm:
permissions:
contents: read
packages: write
runs-on: ubuntu-24.04-arm
needs:
- generate-metadata
Expand Down Expand Up @@ -295,6 +309,9 @@ jobs:
retention-days: 1

image-build-arm-distroless:
permissions:
contents: read
packages: write
runs-on: ubuntu-24.04-arm
needs:
- generate-metadata
Expand Down Expand Up @@ -353,6 +370,8 @@ jobs:
retention-days: 1

image-merge:
permissions:
packages: write
runs-on: ubuntu-latest
needs:
- image-build
Expand Down Expand Up @@ -394,6 +413,8 @@ jobs:
$(printf 'ghcr.io/${{ github.repository_owner }}/tinyauth@sha256:%s ' *)

image-merge-distroless:
permissions:
packages: write
runs-on: ubuntu-latest
needs:
- image-build-distroless
Expand Down Expand Up @@ -437,6 +458,8 @@ jobs:
$(printf 'ghcr.io/${{ github.repository_owner }}/tinyauth@sha256:%s ' *)

update-release:
permissions:
contents: write
runs-on: ubuntu-latest
needs:
- binary-build
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/sponsors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ on:
workflow_dispatch:

permissions:
contents: write
pull-requests: write
contents: read

jobs:
generate-sponsors:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Site builder
FROM node:26.10-alpine3.23 AS frontend-builder
FROM node:26.10-alpine3.23@sha256:c3c6e314fd42e41962360b2482fc18d150beb47976c3aa7b8b9689d7ef42a5c2 AS frontend-builder

WORKDIR /frontend

Expand Down Expand Up @@ -49,7 +49,7 @@ RUN CGO_ENABLED=0 go build -tags "${BUILD_TAGS}" -ldflags "${LDFLAGS} \
-o tinyauth ./cmd/tinyauth

# Runner
FROM alpine:3.24 AS runner
FROM alpine:3.24@sha256:f59abe656b692d901e184be3445e084786602108599d2a51d229c0f5a48c71bf AS runner

WORKDIR /tinyauth

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.distroless
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Site builder
FROM node:26.10-alpine3.23 AS frontend-builder
FROM node:26.10-alpine3.23@sha256:c3c6e314fd42e41962360b2482fc18d150beb47976c3aa7b8b9689d7ef42a5c2 AS frontend-builder

WORKDIR /frontend

Expand Down Expand Up @@ -54,7 +54,7 @@ RUN mkdir -p /data/resources /data/oidc /data/tailscale
RUN chown -R tinyauth:tinyauth /data

# Runner
FROM gcr.io/distroless/static-debian12:latest AS runner
FROM gcr.io/distroless/static-debian12:latest@sha256:d75cdd72874d4790092fcb1b058493ecf6bb5bf2b2b897045b00ff01d91843f2 AS runner

WORKDIR /tinyauth

Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:26.1-alpine3.23
FROM node:26.1-alpine3.23@sha256:e71ac5e964b9201072425d59d2e876359efa25dc96bb1768cb73295728d6e4ea

RUN npm install -g pnpm@11.1.2

Expand Down
Loading