File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
{{cookiecutter.stack_name}} Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
- name : Build, test, and publish Docker Images
1
+ name : Build, test, and publish Docker Image
2
2
3
3
env :
4
4
{%- raw %}
7
7
{%- endraw %}
8
8
9
9
# For more details on events that trigger workflows see:
10
- # https://docs.github.com/en/actions/using -workflows/events-that-trigger-workflows
10
+ # https://docs.github.com/en/actions/writing -workflows/choosing-when-your-workflow-runs /events-that-trigger-workflows
11
11
on :
12
12
schedule :
13
13
# Weekly, at 07:00 on Monday UTC time
@@ -37,7 +37,7 @@ concurrency:
37
37
cancel-in-progress : true
38
38
39
39
jobs :
40
- build-test-publish-images :
40
+ build-test-publish-image :
41
41
runs-on : ubuntu-24.04
42
42
permissions :
43
43
contents : write
80
80
run : python3 -m pytest tests
81
81
82
82
- name : Login to Docker Hub 🔐
83
- if : github.ref == 'refs/heads/main'
84
- uses : docker/login-action@v3
83
+ if : github.ref == 'refs/heads/main' || github.event_name == 'schedule'
84
+ uses : docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
85
85
with :
86
86
{%- raw %}
87
87
username : ${{ env.OWNER }}
Original file line number Diff line number Diff line change 1
1
FROM {{cookiecutter.stack_base_image}}
2
2
3
- # Add RUN statements to install packages as the $NB_USER defined in the base images.
3
+ # Add RUN statements to install packages as the ${ NB_USER} defined in the base images.
4
4
5
- # Add a "USER root" statement followed by RUN statements to install system packages using apt-get,
6
- # change file permissions, etc.
5
+ # Add a "USER root" statement followed by RUN statements
6
+ # to install system packages using apt-get, change file permissions, etc.
7
7
8
- # If you do switch to root, always be sure to add a "USER $NB_USER " command at the end of the
9
- # file to ensure the image runs as a unprivileged user by default.
8
+ # If you do switch to root, always be sure to add a "USER ${NB_UID} " command
9
+ # at the end of the file to ensure the image runs as a unprivileged user by default.
You can’t perform that action at this time.
0 commit comments