File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 32
32
DAFNI_PARENT_ID : ${{ secrets.DAFNI_PARENT_ID }}
33
33
DAFNI_USERNAME : ${{ secrets.DAFNI_USERNAME }}
34
34
DAFNI_PASSWORD : ${{ secrets.DAFNI_PASSWORD }}
35
- CTF_VERSION : |
36
- version=${{ github.event.release.tag_name }}
37
- version=${version%%.*}
35
+ CTF_VERSION : ${{ github.event.release.tag_name[1:2] }}
38
36
39
37
steps :
40
38
- uses : actions/checkout@v3
43
41
python-version : 3.9
44
42
- name : Build the container
45
43
run : |
46
- docker build -t ctf:${version } -f ./dafni/Dockerfile .
47
- docker save ctf:${version } | gzip > ctf${version }.tar.gz
44
+ docker build -t ctf:${CTF_VERSION } -f ./dafni/Dockerfile .
45
+ docker save ctf:${CTF_VERSION } | gzip > ctf${CTF_VERSION }.tar.gz
48
46
49
47
- name : Install DAFNI-CLI and log in
50
48
run : |
53
51
54
52
- name : Upload to DAFNI
55
53
run : |
56
- dafni upload model ./dafni/model_definition.yaml ctf${version }.tar.gz --version-message "Version ${version }. Uploaded via Github." --parent-id ${DAFNI_PARENT_ID} -y
54
+ dafni upload model ./dafni/model_definition.yaml ctf${CTF_VERSION }.tar.gz --version-message "Version ${CTF_VERSION }. Uploaded via Github." --parent-id ${DAFNI_PARENT_ID} -y
57
55
dafni logout
You can’t perform that action at this time.
0 commit comments