Update .github/workflows/build-publish.yml #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / .github/workflows/build-publish.ymlInvalid workflow file
|
||
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 |