Skip to content

Commit

Permalink
ci: update ubuntu and action branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cbini committed Oct 18, 2024
1 parent 28717de commit 6a3413d
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/dagster-cloud-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ permissions:

jobs:
prerun:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
outputs:
result: ${{ steps.prerun.outputs.result }}
steps:
Expand All @@ -48,7 +48,7 @@ jobs:
# https://github.com/dagster-io/dagster-cloud-action/blob/main/actions/utils/prerun/action.yml
- name: Pre-run checks
id: prerun
uses: dagster-io/dagster-cloud-action/actions/utils/prerun@v0.1
uses: dagster-io/dagster-cloud-action/actions/utils/prerun@main

build:
needs:
Expand Down Expand Up @@ -177,15 +177,8 @@ jobs:
run: |
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}
# # https://github.com/GoogleCloudPlatform/gcr-cleaner/blob/main/docs/deploy-github-actions.md
# - uses: docker://us-docker.pkg.dev/gcr-cleaner/gcr-cleaner/gcr-cleaner-cli
# with:
# args: >-
# -repo=us-central1-docker.pkg.dev/teamster-332318/teamster/${{ inputs.code-location }}
# -keep=5 -tag-filter-any=.*

deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
needs:
- prerun
- build
Expand All @@ -203,7 +196,7 @@ jobs:
# https://github.com/dagster-io/dagster-cloud-action/blob/main/actions/utils/dagster-cloud-cli/action.yml
- name: Validate configuration
id: ci-validate
uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@v0.1
uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@main
if: needs.prerun.outputs.result != 'skip'
with:
command:
Expand All @@ -215,7 +208,7 @@ jobs:
# https://github.com/dagster-io/dagster-cloud-action/blob/main/actions/utils/ci-init/action.yml
- name: Initialize build session
id: ci-init
uses: dagster-io/dagster-cloud-action/actions/utils/ci-init@v0.1
uses: dagster-io/dagster-cloud-action/actions/utils/ci-init@main
if: needs.prerun.outputs.result != 'skip'
with:
project_dir: ${{ env.DAGSTER_PROJECT_DIR }}
Expand All @@ -227,7 +220,7 @@ jobs:
# https://github.com/dagster-io/dagster-cloud-action/blob/main/actions/utils/dagster-cloud-cli/action.yml
- name: Update build session with image tag
id: ci-set-build-output
uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@v0.1
uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@main
if: needs.prerun.outputs.result != 'skip'
with:
command:
Expand All @@ -238,7 +231,7 @@ jobs:
# https://github.com/dagster-io/dagster-cloud-action/blob/main/actions/utils/dagster-cloud-cli/action.yml
- name: Deploy to Dagster Cloud
id: ci-deploy
uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@v0.1
uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@main
if: needs.prerun.outputs.result != 'skip'
with:
command: ci deploy
Expand All @@ -248,7 +241,7 @@ jobs:
# https://github.com/dagster-io/dagster-cloud-action/blob/main/actions/utils/dagster-cloud-cli/action.yml
- name: Update PR comment for branch deployments
id: ci-notify
uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@v0.1
uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@main
if: needs.prerun.outputs.result != 'skip' && always()
with:
command: ci notify --project-dir=${{ env.DAGSTER_PROJECT_DIR }}
Expand All @@ -257,7 +250,7 @@ jobs:
# https://github.com/dagster-io/dagster-cloud-action/blob/main/actions/utils/dagster-cloud-cli/action.yml
- name: Generate a summary
id: ci-summary
uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@v0.1
uses: dagster-io/dagster-cloud-action/actions/utils/dagster-cloud-cli@main
if: needs.prerun.outputs.result != 'skip' && always()
with:
command: ci status --output-format=markdown >> $GITHUB_STEP_SUMMARY

0 comments on commit 6a3413d

Please sign in to comment.