File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
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 : ${{ github.event.release.tag_name.split('.')[0] }}
35
+ CTF_VERSION : |
36
+ version="${{ github.event.release.tag_name }}"
37
+ version=${version%%.*}
36
38
37
39
steps :
38
40
- uses : actions/checkout@v3
41
43
python-version : 3.9
42
44
- name : Build the container
43
45
run : |
44
- docker build -t ctf:${CTF_VERSION } -f ./dafni/Dockerfile .
45
- docker save ctf:${CTF_VERSION } | gzip > ctf${CTF_VERSION }.tar.gz
46
+ docker build -t ctf:${version } -f ./dafni/Dockerfile .
47
+ docker save ctf:${version } | gzip > ctf${version }.tar.gz
46
48
47
49
- name : Install DAFNI-CLI and log in
48
50
run : |
51
53
52
54
- name : Upload to DAFNI
53
55
run : |
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
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
55
57
dafni logout
You can’t perform that action at this time.
0 commit comments