mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-29 23:28:11 +00:00
Update deploy workflow for new environment configuration
This commit is contained in:
9
.github/workflows/deploy.yml
vendored
9
.github/workflows/deploy.yml
vendored
@@ -2,8 +2,7 @@ name: Deploy Stacks
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- dev
|
- env-test
|
||||||
- staging
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@@ -20,7 +19,7 @@ jobs:
|
|||||||
detect-changes:
|
detect-changes:
|
||||||
name: Detect changed services
|
name: Detect changed services
|
||||||
needs: malware-scan
|
needs: malware-scan
|
||||||
runs-on: ${{ fromJson(format('["self-hosted", "{0}"]', github.ref_name)) }}
|
runs-on: ["self-hosted", "dev"]
|
||||||
outputs:
|
outputs:
|
||||||
matrix: ${{ steps.filter.outputs.matrix }}
|
matrix: ${{ steps.filter.outputs.matrix }}
|
||||||
steps:
|
steps:
|
||||||
@@ -100,7 +99,7 @@ jobs:
|
|||||||
name: Deploy ${{ matrix.service }}
|
name: Deploy ${{ matrix.service }}
|
||||||
needs: [malware-scan, detect-changes]
|
needs: [malware-scan, detect-changes]
|
||||||
if: ${{ needs.detect-changes.outputs.matrix != '[]' }}
|
if: ${{ needs.detect-changes.outputs.matrix != '[]' }}
|
||||||
runs-on: ${{ fromJson(format('["self-hosted", "{0}"]', github.ref_name)) }}
|
runs-on: ["self-hosted", "dev"]
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@@ -138,7 +137,7 @@ jobs:
|
|||||||
- name: Sync environment from server
|
- name: Sync environment from server
|
||||||
run: |
|
run: |
|
||||||
chmod +x scripts/deploy/*.sh
|
chmod +x scripts/deploy/*.sh
|
||||||
./scripts/deploy/sync-env-from-server.sh "${{ matrix.service }}"
|
./scripts/deploy/sync-env-from-app.sh "${{ matrix.service }}"
|
||||||
|
|
||||||
- name: Set compose project name
|
- name: Set compose project name
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user