20241113-a
This commit is contained in:
36
.github/workflows/publish.yml
vendored
Normal file
36
.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
pull_request:
|
||||
branches:
|
||||
- 'master'
|
||||
|
||||
jobs:
|
||||
call_workflow_build_node:
|
||||
uses: infrastructure/reusing_workflows/.github/workflows/build_node.yml@main
|
||||
with:
|
||||
node-version: '16.x'
|
||||
dist-dir: 'dist'
|
||||
artifact-name: 'artifact'
|
||||
secrets: inherit
|
||||
|
||||
call_workflow_publish_docker:
|
||||
uses: infrastructure/reusing_workflows/.github/workflows/publish_docker.yml@main
|
||||
with:
|
||||
artifact-name: 'artifact'
|
||||
docker_context: '.'
|
||||
dockerfile_path: './docker/Dockerfile'
|
||||
platforms: ${{ github.event_name == 'pull_request' && 'linux/amd64' || 'linux/amd64,linux/arm64' }}
|
||||
secrets: inherit
|
||||
needs: call_workflow_build_node
|
||||
|
||||
call_workflow_deploy_compose:
|
||||
uses: infrastructure/reusing_workflows/.github/workflows/deploy_compose.yml@main
|
||||
with:
|
||||
stack_file_name: compose.admin.yml
|
||||
env_file_name: ${{ github.event_name == 'pull_request' && '.env.dev' || '.env.base' }},.env.version
|
||||
args: up -d
|
||||
pull_images_first: true
|
||||
secrets: inherit
|
||||
needs: call_workflow_publish_docker
|
||||
Reference in New Issue
Block a user