forked from coecms/cms-conda-singularity
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 939 Bytes
/
push_to_main.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
name: Deploy conda env
on:
push:
branches: main
jobs:
generate_matrix:
uses: ./.github/workflows/get_changed_env.yml
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
### Latest at time of writing
uses: actions/checkout@v4
- name: Sync repository to Gadi
### Latest at time of writing
uses: up9cloud/action-rsync@v1.3
env:
HOST: gadi.nci.org.au
TARGET: ${{secrets.GADI_REPO_PATH}}
KEY: ${{secrets.DEPLOY_KEY}}
USER: ${{secrets.GADI_USER}}
deploy:
needs: [ generate_matrix, setup ]
uses: ./.github/workflows/deploy.yml
with:
environment: ${{ matrix.environment }}
secrets: inherit
if: ${{ needs.generate_matrix.outputs.matrix != '{"include":[]}' }}
strategy:
matrix: ${{fromJson(needs.generate_matrix.outputs.matrix)}}
max-parallel: 1
fail-fast: false