ci: build on all branches, use repo owner for GHCR tag (lowercase)

This commit is contained in:
End 2026-04-02 05:56:56 -07:00
parent 86c4eba2bc
commit aa6edbae72
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -2,7 +2,6 @@ name: Build and push Docker image
on:
push:
branches: [OAuth_Delegated_Token]
jobs:
build:
@ -12,6 +11,8 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v4
- name: Set lowercase owner
run: echo "OWNER=$(echo '${{ github.repository_owner }}' | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- uses: docker/login-action@v3
with:
registry: ghcr.io
@ -22,6 +23,6 @@ jobs:
with:
context: .
push: true
tags: ghcr.io/system-end/auth:latest
tags: ghcr.io/${{ env.OWNER }}/auth:latest
cache-from: type=gha
cache-to: type=gha,mode=max

View file

@ -1 +1,2 @@
FROM ghcr.io/system-end/auth:latest
ARG OWNER=system-end
FROM ghcr.io/${OWNER}/auth:latest