mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-07-03 17:10:10 +08:00
fixed workflow
This commit is contained in:
@@ -46,9 +46,9 @@ jobs:
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ inputs.image-name }}
|
||||
tags: |
|
||||
type=raw,value=latest,enable={{is_default_branch}}
|
||||
type=sha,prefix=${{ env.TAG_PREFIX }},format=short,enable={{!is_default_branch}}
|
||||
type=ref,event=tag,enable={{!is_default_branch}}
|
||||
type=raw,value=latest,enable=${{ github.ref_name == 'main' }}
|
||||
type=sha,prefix=${{ env.TAG_PREFIX }},format=short,enable=${{ github.ref_name != 'main' }}
|
||||
type=ref,event=tag,enable=${{ github.ref_name != 'main' }}
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v3.2.0
|
||||
with:
|
||||
|
||||
@@ -13,6 +13,7 @@ jobs:
|
||||
uses: ./.github/workflows/pre-commit.yaml
|
||||
build-backend:
|
||||
uses: ./.github/workflows/docker-build.yaml
|
||||
needs: pre-commit
|
||||
with:
|
||||
image-name: oasst-backend
|
||||
context: .
|
||||
@@ -20,6 +21,7 @@ jobs:
|
||||
build-args: ""
|
||||
build-web:
|
||||
uses: ./.github/workflows/docker-build.yaml
|
||||
needs: pre-commit
|
||||
with:
|
||||
image-name: oasst-web
|
||||
context: .
|
||||
@@ -27,6 +29,7 @@ jobs:
|
||||
build-args: ""
|
||||
build-bot:
|
||||
uses: ./.github/workflows/docker-build.yaml
|
||||
needs: pre-commit
|
||||
with:
|
||||
image-name: oasst-discord-bot
|
||||
context: .
|
||||
|
||||
Reference in New Issue
Block a user