Skip to content

Merge pull request #180 from mobidata-bw/fix-delete-script #49

Merge pull request #180 from mobidata-bw/fix-delete-script

Merge pull request #180 from mobidata-bw/fix-delete-script #49

Workflow file for this run

name: build & publish Docker image
on:
push:
branches:
- main
jobs:
lint:
name: lint
uses: './.github/workflows/lint.yml'
validate:
name: validate
uses: './.github/workflows/validate.yml'
build-publish:
needs:
- lint
- validate
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: set up Docker buildx
uses: docker/setup-buildx-action@v3
- name: log into the GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: set date-based tag
run: |
echo "DATE_TIME_TAG=$(date '+%Y-%m-%dT%H-%M')" >> $GITHUB_ENV
- name: build and push dagster-pipeline Docker image
uses: docker/build-push-action@v6
with:
file: pipeline.Dockerfile
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/dagster-pipeline:latest
ghcr.io/${{ github.repository_owner }}/dagster-pipeline:${{ env.DATE_TIME_TAG }}
platforms: linux/amd64,linux/arm64
# https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api
cache-from: type=gha
cache-to: type=gha,mode=max
- name: build and push dagster-daemon Docker image
uses: docker/build-push-action@v6
with:
file: dagster.Dockerfile
target: daemon
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/dagster-daemon:latest
ghcr.io/${{ github.repository_owner }}/dagster-daemon:${{ env.DATE_TIME_TAG }}
platforms: linux/amd64,linux/arm64
# https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api
cache-from: type=gha
cache-to: type=gha,mode=max
- name: build and push dagster-dagit Docker image
uses: docker/build-push-action@v6
with:
file: dagster.Dockerfile
target: dagit
push: true
tags: |
ghcr.io/${{ github.repository_owner }}/dagster-dagit:latest
ghcr.io/${{ github.repository_owner }}/dagster-dagit:${{ env.DATE_TIME_TAG }}
platforms: linux/amd64,linux/arm64
# https://docs.docker.com/build/ci/github-actions/cache/#cache-backend-api
cache-from: type=gha
cache-to: type=gha,mode=max