Skip to content

Commit 80de09d

Browse files
committed
ci: Add dagster build step
1 parent 9636ccc commit 80de09d

File tree

1 file changed

+37
-4
lines changed

1 file changed

+37
-4
lines changed

.github/workflows/main.yml

Lines changed: 37 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@ on:
66
push:
77
tags:
88
- 'v*.*.*'
9-
10-
# Allows you to run this workflow manually from the Actions tab
11-
workflow_dispatch:
12-
139
jobs:
1410
# This job creates and publishes the mlflow docker images
1511
build-mlflow:
@@ -84,3 +80,40 @@ jobs:
8480

8581
- name: Image digest
8682
run: echo ${{ steps.docker_build.outputs.digest }}
83+
84+
# This job creates and publishes the dagster docker images
85+
build-dagster:
86+
runs-on: ubuntu-latest
87+
steps:
88+
- name: Checkout Repo ✅
89+
uses: actions/checkout@v2
90+
91+
- name: Job preparation 🛫 # Steps that must be carried out before creating the Docker images
92+
uses: ./.github/actions/shared-build-steps
93+
with:
94+
dockerhub_user: ${{ secrets.DOCKERHUB_USER }}
95+
dockerhub_password: ${{ secrets.DOCKERHUB_PASSWORD }}
96+
runner_os: ${{ runner.os }}
97+
github_sha: ${{ github.sha }}
98+
99+
- name: Docker meta 💬 # Creating meta information such as the image tag for the Docker image
100+
id: meta
101+
uses: docker/metadata-action@v5
102+
with:
103+
images: codecentric/from-jupyter-to-production-dagster
104+
105+
- name: Build and push juypter Docker image 🔨🐳
106+
id: docker_build_dagster
107+
uses: docker/[email protected]
108+
with:
109+
context: .
110+
file: ./docker/dagster/Dockerfile
111+
tags: ${{ steps.meta.outputs.tags }}
112+
push: ${{ github.event_name != 'pull_request' }}
113+
builder: ${{ steps.buildx.outputs.name }}
114+
cache-from: type=local,src=/tmp/.buildx-cache
115+
cache-to: type=local,dest=/tmp/.buildx-cache
116+
platforms: linux/amd64,linux/arm64
117+
118+
- name: Image digest
119+
run: echo ${{ steps.docker_build.outputs.digest }}

0 commit comments

Comments
 (0)