Skip to content

Commit

Permalink
refactor: put continuous deployment action in directory (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
rexledesma authored Jan 4, 2022
1 parent 6a00a1a commit c792abc
Show file tree
Hide file tree
Showing 13 changed files with 10,871 additions and 7,517 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/example-docker-target-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
continue-on-error: true

- name: Run Dagster Cloud CI/CD action
# Here, use `uses: dagster-io/dagster-cloud-cicd-action@{version}`
# e.g. `uses: dagster-io/dagster-cloud-cicd-action@v0.1.2`
uses: ./
# Here, use `uses: dagster-io/dagster-cloud-cicd-action/deploy@{version}`
# e.g. `uses: dagster-io/dagster-cloud-cicd-action/deploy@v0.1.2`
uses: ./deploy
with:
location-file: ./example/docker-target-stage/locations.yaml
dagit-url: https://elementl.dogfood.dagster.cloud/dev
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/example-minimal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
continue-on-error: true

- name: Run Dagster Cloud CI/CD action
# Here, use `uses: dagster-io/dagster-cloud-cicd-action@{version}`
# e.g. `uses: dagster-io/dagster-cloud-cicd-action@v0.1.2`
uses: ./
# Here, use `uses: dagster-io/dagster-cloud-cicd-action/deploy@{version}`
# e.g. `uses: dagster-io/dagster-cloud-cicd-action/deploy@v0.1.2`
uses: ./deploy
with:
location-file: ./example/minimal/locations.yaml
dagit-url: https://elementl.dogfood.dagster.cloud/dev
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/example-multiple-locations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
continue-on-error: true

- name: Run Dagster Cloud CI/CD action
# Here, use `uses: dagster-io/dagster-cloud-cicd-action@{version}`
# e.g. `uses: dagster-io/dagster-cloud-cicd-action@v0.1.2`
uses: ./
# Here, use `uses: dagster-io/dagster-cloud-cicd-action/deploy@{version}`
# e.g. `uses: dagster-io/dagster-cloud-cicd-action/deploy@v0.1.2`
uses: ./deploy
with:
location-file: ./example/multiple-locations/locations.yaml
dagit-url: https://elementl.dogfood.dagster.cloud/dev
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/example-requirements-txt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
continue-on-error: true

- name: Run Dagster Cloud CI/CD action
# Here, use `uses: dagster-io/dagster-cloud-cicd-action@{version}`
# e.g. `uses: dagster-io/dagster-cloud-cicd-action@v0.1.2`
uses: ./
# Here, use `uses: dagster-io/dagster-cloud-cicd-action/deploy@{version}`
# e.g. `uses: dagster-io/dagster-cloud-cicd-action/deploy@v0.1.2`
uses: ./deploy
with:
location-file: ./example/requirements-txt/locations.yaml
dagit-url: https://elementl.dogfood.dagster.cloud/dev
Expand Down
2 changes: 1 addition & 1 deletion action.yml → deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ inputs:
default: false
runs:
using: 'node12'
main: 'dist/index.js'
main: '../dist/deploy/index.js'
15,304 changes: 7,804 additions & 7,500 deletions dist/index.js → dist/deploy/index.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dist/deploy/index.js.map

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
"name": "dagster-cloud-cicd-action",
"version": "0.010",
"description": "Builds and pushes Dagster repo Docker images and updates the corresponding Dagster Cloud repo locations.",
"main": "src/index.js",
"scripts": {
"lint": "eslint .",
"prepare": "ncc build src/index.js -o dist --source-map --license licenses.txt",
"prepare": "ncc build src/deploy-action.js -o dist/deploy --source-map --license licenses.txt",
"test": "jest",
"all": "npm run lint && npm run prepare && npm run test"
},
Expand Down Expand Up @@ -36,4 +35,4 @@
"eslint": "^8.0.0",
"jest": "^27.2.5"
}
}
}
File renamed without changes.
3,051 changes: 3,051 additions & 0 deletions yarn.lock

Large diffs are not rendered by default.

0 comments on commit c792abc

Please sign in to comment.