Skip to content

Commit 1047c56

Browse files
committed
updated cookiecutter
1 parent ba6d705 commit 1047c56

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,18 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v2
1919

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+
2026
- name: Build notebook image
2127
uses: docker/build-push-action@v1.1.0
2228
with:
2329
username: ${{ secrets.DOCKER_USERNAME }}
2430
password: ${{ secrets.DOCKER_PASSWORD }}
25-
repository: dddlab/data_science_project_template
31+
repository: ${{ steps.set_env_notebook.outputs.image }}
2632
tag_with_sha: true
2733
tags: latest
2834

@@ -36,22 +42,16 @@ jobs:
3642
- name: Checkout code
3743
uses: actions/checkout@v2
3844

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-
4445
- name: Create Release
4546
id: create_release
4647
uses: actions/create-release@v1
4748
env:
4849
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
GITHUB_SHA: ${{ github.sha }}
5050
with:
5151
tag_name: ${{ github.ref }}
5252
release_name: Release ${{ github.ref }}
5353
body: |
54-
${{ steps.set_body.outputs.grader_image }}
54+
${{ steps.set_env_notebook.outputs.image }}:${{ steps.set_env_notebook.outputs.tag }}:
5555
draft: false
5656
prerelease: false
57-
57+

0 commit comments

Comments
 (0)