mirror of
https://github.com/System-End/identity-vault.git
synced 2026-04-19 16:28:21 +00:00
ci: build on all branches, use repo owner for GHCR tag (lowercase)
This commit is contained in:
parent
86c4eba2bc
commit
aa6edbae72
2 changed files with 5 additions and 3 deletions
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1 +1,2 @@
|
|||
FROM ghcr.io/system-end/auth:latest
|
||||
ARG OWNER=system-end
|
||||
FROM ghcr.io/${OWNER}/auth:latest
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue