Add GitHub Actions Docker build workflow

This commit is contained in:
End 2026-04-01 19:55:12 -07:00
parent b5f4a23145
commit 5f72eed549
No known key found for this signature in database

27
.github/workflows/docker.yml vendored Normal file
View file

@ -0,0 +1,27 @@
name: Build and push Docker image
on:
push:
branches: [OAuth_Delegated_Token]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ghcr.io/system-end/auth:latest
cache-from: type=gha
cache-to: type=gha,mode=max