1
- # This is a basic workflow to help you get started with Actions
1
+ # This GitHub Workflow builds the necessary docker images for the `from jupyter to production workshop`
2
+ name : Build and publish workshop Docker images 🔨🐳🚀
2
3
3
- name : CI
4
-
5
- # Controls when the action will run.
6
4
on :
7
- # Triggers the workflow on push or pull request events but only for the master branch
5
+ # Triggers the workflow when a new tag with the pattern 'v*.*.*' is pushed to the repository
8
6
push :
9
7
tags :
10
8
- ' v*.*.*'
11
9
12
10
# Allows you to run this workflow manually from the Actions tab
13
11
workflow_dispatch :
14
12
15
- # A workflow run is made up of one or more jobs that can run sequentially or in parallel
16
13
jobs :
17
- # This workflow contains a single job called "build"
14
+ # This job creates and publishes the mlflow docker images
18
15
build-mlflow :
19
- # The type of runner that the job will run on
20
16
runs-on : ubuntu-latest
21
-
22
- # Steps represent a sequence of tasks that will be executed as part of the job
23
17
steps :
24
18
- name : Checkout Repo ✅
25
19
uses : actions/checkout@v2
26
20
27
- - uses : ./.github/actions/shared-build-steps
21
+ - name : Job preparation 🛫 # Steps that must be carried out before creating the Docker images
22
+ uses : ./.github/actions/shared-build-steps
28
23
with :
29
24
dockerhub_user : ${{ secrets.DOCKERHUB_USER }}
30
25
dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
31
26
runner_os : ${{ runner.os }}
32
27
github_sha : ${{ github.sha }}
33
28
34
- - name : Docker meta 💬
29
+ - name : Docker meta 💬 # Creating meta information such as the image tag for the Docker image
35
30
id : meta
36
31
uses : docker/metadata-action@v5
37
32
with :
@@ -52,23 +47,23 @@ jobs:
52
47
53
48
- name : Image digest
54
49
run : echo ${{ steps.docker_build.outputs.digest }}
50
+
51
+ # This job creates and publishes the jupyter docker images
55
52
build-jupyter :
56
- # The type of runner that the job will run on
57
53
runs-on : ubuntu-latest
58
-
59
- # Steps represent a sequence of tasks that will be executed as part of the job
60
54
steps :
61
55
- name : Checkout Repo ✅
62
56
uses : actions/checkout@v2
63
57
64
- - uses : ./.github/actions/shared-build-steps
58
+ - name : Job preparation 🛫 # Steps that must be carried out before creating the Docker images
59
+ uses : ./.github/actions/shared-build-steps
65
60
with :
66
61
dockerhub_user : ${{ secrets.DOCKERHUB_USER }}
67
62
dockerhub_password : ${{ secrets.DOCKERHUB_PASSWORD }}
68
63
runner_os : ${{ runner.os }}
69
64
github_sha : ${{ github.sha }}
70
65
71
- - name : Docker meta 💬
66
+ - name : Docker meta 💬 # Creating meta information such as the image tag for the Docker image
72
67
id : meta
73
68
uses : docker/metadata-action@v5
74
69
with :
0 commit comments