mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-07 06:18:03 +03:00
fajnel
This commit is contained in:
@@ -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') }}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user