This commit is contained in:
zk
2026-04-30 21:33:23 +00:00
parent 6c0692c9ed
commit b1aaa76255
7 changed files with 16 additions and 12 deletions
+9 -5
View File
@@ -25,17 +25,21 @@ concurrency:
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Log in to Docker Hub
- name: Log in to GHCR
if: ${{ github.event_name != 'pull_request' }}
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
@@ -47,7 +51,7 @@ jobs:
file: Dockerfile.dev
push: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
tags: |
zkldi/tachi-dev:main
zkldi/tachi-dev:${{ github.sha }}
ghcr.io/zkldi/tachi-dev:main
ghcr.io/zkldi/tachi-dev:${{ github.sha }}
cache-from: type=gha,scope=dev-image
cache-to: type=gha,mode=max,scope=dev-image