-
Notifications
You must be signed in to change notification settings - Fork 2
68 lines (66 loc) · 2.55 KB
/
push-to-neurodesk.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
name: push-to-neurodesk
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test_singularity_aria2:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Test singularity and aria2 before pushing to neurocommand
run: /bin/bash .github/workflows/test_singularity_aria2.sh
test_singularity_curl:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Test singularity and curl before pushing to neurocommand
run: /bin/bash .github/workflows/test_singularity_curl.sh
test_singularity_cvmfs:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Test singularity and cvmfs before pushing to neurocommand
run: /bin/bash .github/workflows/test_singularity_cvmfs.sh
test_apptainer_curl:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Test apptainer and curl before pushing to neurocommand
run: /bin/bash .github/workflows/test_apptainer_curl.sh
test_apptainer_cvmfs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Test apptainer and cvmfs before pushing to neurocommand
run: /bin/bash .github/workflows/test_apptainer_cvmfs.sh
test_apptainer_aria2:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Test apptainer and curl before pushing to neurocommand
run: /bin/bash .github/workflows/test_apptainer_aria2.sh
push_to_neurocommand:
needs: [test_singularity_aria2,test_singularity_curl,test_singularity_cvmfs,test_apptainer_aria2,test_apptainer_curl,test_apptainer_cvmfs]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
repository: NeuroDesk/neurocommand
token: ${{secrets.AUTOCOMMIT_FOR_NEUROCOMMAND}}
persist-credentials: false
fetch-depth: 0
- name: Setup git config
run: |
git config --local user.name "Github Action"
git config --local user.email "[email protected]"
git config pull.ff only
- name: Setup git remotes
run: |
git remote add subtree https://stebo85:${{secrets.AUTOCOMMIT_FOR_NEUROCOMMAND}}@github.com/NeuroDesk/transparent-singularity.git
git remote add upstream https://stebo85:${{secrets.AUTOCOMMIT_FOR_NEUROCOMMAND}}@github.com/NeuroDesk/neurocommand.git
- name: Pull transparent-singularity into subtree
run: git subtree pull --prefix neurodesk/transparent-singularity subtree master --squash
- name: Push to neurodesk
run: git push upstream main