Skip to content

Update .github/workflows/build-publish.yml #2

Update .github/workflows/build-publish.yml

Update .github/workflows/build-publish.yml #2

Workflow file for this run

name: build & publish Docker image
on:
push:
branches:
- main
- gh-ci # todo: remove
jobs:
lint:
name: lint
uses: './.github/workflows/lint.yml'
validate:
name: validate
uses: './.github/workflows/validate.yml'

Check failure on line 16 in .github/workflows/build-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-publish.yml

Invalid workflow file

error parsing called workflow ".github/workflows/build-publish.yml" -> "./.github/workflows/validate.yml" (source branch with sha:bb81a5d2a00671cce0c118733687e3d691bf8f15) : workflow is not reusable as it is missing a `on.workflow_call` trigger
build-publish:
needs:
- lint
- validate
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: set up Docker buildx
uses: docker/setup-buildx-action@v2
- name: log into the GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ github.token }}
- name: build and push dagster_pipeline Docker image
uses: docker/build-push-action@v4
with:
file: pipeline.Dockerfile
# push: true
tags: |
ghcr.io/${{ github.github.repository_owner }}/dagster_pipeline:latest
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@v4
with:
file: dagster.Dockerfile
target: daemon
# push: true
tags: |
ghcr.io/${{ github.github.repository_owner }}/dagster_daemon:latest
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@v4
with:
file: pipeline.Dockerfile
target: dagit
# push: true
tags: |
ghcr.io/${{ github.github.repository_owner }}/dagster_dagit:latest
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