|
6 | 6 | push:
|
7 | 7 | tags:
|
8 | 8 | - 'v*.*.*'
|
9 |
| - |
10 |
| - # Allows you to run this workflow manually from the Actions tab |
11 |
| - workflow_dispatch: |
12 |
| - |
13 | 9 | jobs:
|
14 | 10 | # This job creates and publishes the mlflow docker images
|
15 | 11 | build-mlflow:
|
|
84 | 80 |
|
85 | 81 | - name: Image digest
|
86 | 82 | 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 | + |
| 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