Skip to content

Commit

Permalink
docker
Browse files Browse the repository at this point in the history
  • Loading branch information
benpankow committed Jul 12, 2024
1 parent 8c610ab commit f49e4f5
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ jobs:

# Any value can be used as the docker image tag. It is recommended to use a unique value
# for each build so that multiple builds do not overwrite each other.
- name: Get serverless organization info
uses: ./action-repo/actions/utils/registry_info
with:
organization_id: ${{ inputs.organization_id }}
deployment: ${{ inputs.deployment }}
env:
DAGSTER_CLOUD_API_TOKEN: ${{ inputs.dagster_cloud_api_token }}

- name: Generate docker image tag
id: generate-image-tag
if: steps.prerun.outputs.result == 'docker-deploy'
Expand All @@ -80,24 +88,12 @@ jobs:
if: steps.prerun.outputs.result == 'docker-deploy'
uses: docker/setup-buildx-action@v2

- name: Build and upload Docker image for "quickstart_etl"
if: steps.prerun.outputs.result == 'docker-deploy'
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ${{ env.IMAGE_REGISTRY }}:${{ env.IMAGE_TAG }}-quickstart_etl
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Update build session with image tag for quickstart_etl
id: ci-set-build-output-example-location
- name: Run Docker build
id: run-docker-build
if: steps.prerun.outputs.result == 'docker-deploy'
uses: dagster-io/dagster-cloud-action/actions/utils/[email protected]
with:
command: "ci set-build-output --location-name=quickstart_etl --image-tag=$IMAGE_TAG-quickstart_etl"


command: "ci build --build-strategy=docker"

# Deploy all code locations in this build session to Dagster Cloud
- name: Deploy to Dagster Cloud
Expand Down

0 comments on commit f49e4f5

Please sign in to comment.