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