File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -17,12 +17,18 @@ jobs:
17
17
- name : Checkout
18
18
uses : actions/checkout@v2
19
19
20
+ - name : Set notebook env variables
21
+ id : set_env_notebook
22
+ run : |
23
+ echo "::set-output name=image::dddlab/data_science_project_template"
24
+ echo "::set-output name=tag::sha-${GITHUB_SHA::7}"
25
+
20
26
- name : Build notebook image
21
27
uses : docker/build-push-action@v1.1.0
22
28
with :
23
29
username : ${{ secrets.DOCKER_USERNAME }}
24
30
password : ${{ secrets.DOCKER_PASSWORD }}
25
- repository : dddlab/data_science_project_template
31
+ repository : ${{ steps.set_env_notebook.outputs.image }}
26
32
tag_with_sha : true
27
33
tags : latest
28
34
@@ -36,22 +42,16 @@ jobs:
36
42
- name : Checkout code
37
43
uses : actions/checkout@v2
38
44
39
- - name : Set body
40
- id : set_body
41
- run : |
42
- echo "::set-output name=grader_image::dddlab/data_science_project_template:sha-${GITHUB_SHA::7}"
43
-
44
45
- name : Create Release
45
46
id : create_release
46
47
uses : actions/create-release@v1
47
48
env :
48
49
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
- GITHUB_SHA : ${{ github.sha }}
50
50
with :
51
51
tag_name : ${{ github.ref }}
52
52
release_name : Release ${{ github.ref }}
53
53
body : |
54
- ${{ steps.set_body .outputs.grader_image }}
54
+ ${{ steps.set_env_notebook .outputs.image }}:${{ steps.set_env_notebook.outputs.tag }}:
55
55
draft : false
56
56
prerelease : false
57
-
57
+
You can’t perform that action at this time.
0 commit comments