-
Notifications
You must be signed in to change notification settings - Fork 25
69 lines (66 loc) · 2.24 KB
/
deploy_one.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: deploy one
on:
# Make it a reusable workflow
workflow_call:
inputs:
changedproject:
description: Project to deploy
type: string
default: ''
removedproject:
description: Project to remove
type: string
default: ''
env:
EXAMPLES_HOLOVIZ_AE5_ADMIN_USERNAME: ${{ secrets.EXAMPLES_HOLOVIZ_AE5_ADMIN_USERNAME }}
EXAMPLES_HOLOVIZ_AE5_ADMIN_PASSWORD: ${{ secrets.EXAMPLES_HOLOVIZ_AE5_ADMIN_PASSWORD }}
EXAMPLES_HOLOVIZ_AE5_USERNAME: ${{ secrets.EXAMPLES_HOLOVIZ_AE5_USERNAME }}
EXAMPLES_HOLOVIZ_AE5_PASSWORD: ${{ secrets.EXAMPLES_HOLOVIZ_AE5_PASSWORD }}
jobs:
deploy_one:
if: inputs.changedproject != ''
name: deploy ${{ inputs.changedproject }}
runs-on: ubuntu-latest
env:
# Validation warnings set to raise an error
EXAMPLES_HOLOVIZ_WARNING_AS_ERROR: 1
defaults:
run:
shell: bash -l {0}
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
auto-update-conda: false
auto-activate-base: false
activate-environment: examples-gallery-manage
environment-file: envs/environment-ubuntu-latest.lock
- name: create project archive
run: doit doc_archive_projects --name ${{ inputs.changedproject }} --extension ".tar.bz2"
- name: validate AE5 project
env:
EXAMPLES_HOLOVIZ_STRICT_DEPLOYMENT_POLICY: "true"
run: doit ae5_validate_deployment --name ${{ inputs.changedproject }}
- name: sync and deploy on AE5
run: doit ae5_sync_project --name ${{ inputs.changedproject }}
remove_one:
if: inputs.removedproject != ''
name: remove ${{ inputs.removedproject }}
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
miniconda-version: "latest"
auto-update-conda: false
auto-activate-base: false
activate-environment: examples-gallery-manage
environment-file: envs/environment-ubuntu-latest.lock
- name: remove project
run: doit ae5_remove_project --name ${{ inputs.removedproject }}