Skip to content

Commit a7382cf

Browse files
committed
ci: Restructure pipeline
1 parent e5a704e commit a7382cf

File tree

1 file changed

+12
-17
lines changed

1 file changed

+12
-17
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,32 @@
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 🔨🐳🚀
23

3-
name: CI
4-
5-
# Controls when the action will run.
64
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
86
push:
97
tags:
108
- 'v*.*.*'
119

1210
# Allows you to run this workflow manually from the Actions tab
1311
workflow_dispatch:
1412

15-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1613
jobs:
17-
# This workflow contains a single job called "build"
14+
# This job creates and publishes the mlflow docker images
1815
build-mlflow:
19-
# The type of runner that the job will run on
2016
runs-on: ubuntu-latest
21-
22-
# Steps represent a sequence of tasks that will be executed as part of the job
2317
steps:
2418
- name: Checkout Repo ✅
2519
uses: actions/checkout@v2
2620

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
2823
with:
2924
dockerhub_user: ${{ secrets.DOCKERHUB_USER }}
3025
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
3126
runner_os: ${{ runner.os }}
3227
github_sha: ${{ github.sha }}
3328

34-
- name: Docker meta 💬
29+
- name: Docker meta 💬 # Creating meta information such as the image tag for the Docker image
3530
id: meta
3631
uses: docker/metadata-action@v5
3732
with:
@@ -52,23 +47,23 @@ jobs:
5247

5348
- name: Image digest
5449
run: echo ${{ steps.docker_build.outputs.digest }}
50+
51+
# This job creates and publishes the jupyter docker images
5552
build-jupyter:
56-
# The type of runner that the job will run on
5753
runs-on: ubuntu-latest
58-
59-
# Steps represent a sequence of tasks that will be executed as part of the job
6054
steps:
6155
- name: Checkout Repo ✅
6256
uses: actions/checkout@v2
6357

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
6560
with:
6661
dockerhub_user: ${{ secrets.DOCKERHUB_USER }}
6762
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
6863
runner_os: ${{ runner.os }}
6964
github_sha: ${{ github.sha }}
7065

71-
- name: Docker meta 💬
66+
- name: Docker meta 💬 # Creating meta information such as the image tag for the Docker image
7267
id: meta
7368
uses: docker/metadata-action@v5
7469
with:

0 commit comments

Comments
 (0)