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
+2 -2
View File
@@ -25,7 +25,7 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: zkldi/tachi-dev:main
image: ghcr.io/zkldi/tachi-dev:main
options: --user root
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -44,7 +44,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: zkldi/tachi-dev:main
image: ghcr.io/zkldi/tachi-dev:main
options: --user root
needs: test
if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
+1 -1
View File
@@ -22,7 +22,7 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: zkldi/tachi-dev:main
image: ghcr.io/zkldi/tachi-dev:main
options: --user root
steps:
- name: Checkout
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: zkldi/tachi-dev:main
image: ghcr.io/zkldi/tachi-dev:main
options: --user root
steps:
- name: Checkout
+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
+1 -1
View File
@@ -16,7 +16,7 @@ jobs:
deploy:
runs-on: ubuntu-latest
container:
image: zkldi/tachi-dev:main
image: ghcr.io/zkldi/tachi-dev:main
options: --user root
if: ${{ github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}
steps:
+1 -1
View File
@@ -26,7 +26,7 @@ jobs:
build:
runs-on: ubuntu-latest
container:
image: zkldi/tachi-dev:main
image: ghcr.io/zkldi/tachi-dev:main
options: --user root
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+1 -1
View File
@@ -36,7 +36,7 @@ jobs:
test:
runs-on: ubuntu-latest
container:
image: zkldi/tachi-dev:main
image: ghcr.io/zkldi/tachi-dev:main
options: --user root
env:
NODE_ENV: "test"