-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feat/stop-editor-scrolling-to-top' of https://github.co…
…m/puridach-w/superset into feat/stop-editor-scrolling-to-top
- Loading branch information
Showing
166 changed files
with
50,378 additions
and
39,905 deletions.
There are no files selected for viewing
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,6 +79,80 @@ jobs: | |
}) | ||
core.setFailed(errMsg) | ||
docker_ephemeral_env: | ||
needs: config | ||
if: needs.config.outputs.has-secrets | ||
name: Push ephemeral env Docker image to ECR | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Download artifact" | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
const artifacts = await github.actions.listWorkflowRunArtifacts({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
run_id: ${{ github.event.workflow_run.id }}, | ||
}); | ||
core.info('*** artifacts') | ||
core.info(JSON.stringify(artifacts)) | ||
const matchArtifact = artifacts.data.artifacts.filter((artifact) => { | ||
return artifact.name === "build"; | ||
}); | ||
if (!matchArtifact.length) { | ||
return core.setFailed("Build artifacts not found"); | ||
} | ||
const download = await github.actions.downloadArtifact({ | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
artifact_id: matchArtifact[0].id, | ||
archive_format: 'zip', | ||
}); | ||
var fs = require('fs'); | ||
fs.writeFileSync('${{github.workspace}}/build.zip', Buffer.from(download.data)); | ||
- run: unzip build.zip | ||
|
||
- name: Display downloaded files (debug) | ||
run: ls -la | ||
|
||
- name: Get SHA | ||
id: get-sha | ||
run: echo "::set-output name=sha::$(cat ./SHA)" | ||
|
||
- name: Get PR | ||
id: get-pr | ||
run: echo "::set-output name=num::$(cat ./PR-NUM)" | ||
|
||
- name: Configure AWS credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: us-west-2 | ||
|
||
- name: Login to Amazon ECR | ||
id: login-ecr | ||
uses: aws-actions/amazon-ecr-login@v1 | ||
|
||
- name: Load, tag and push image to ECR | ||
id: push-image | ||
env: | ||
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }} | ||
ECR_REPOSITORY: superset-ci | ||
SHA: ${{ steps.get-sha.outputs.sha }} | ||
IMAGE_TAG: pr-${{ steps.get-pr.outputs.num }} | ||
run: | | ||
docker load < $SHA.tar.gz | ||
docker tag $SHA $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG | ||
docker tag $SHA $ECR_REGISTRY/$ECR_REPOSITORY:$SHA | ||
docker push -a $ECR_REGISTRY/$ECR_REPOSITORY | ||
ephemeral_env_up: | ||
needs: ephemeral_env_comment | ||
if: needs.ephemeral_env_comment.outputs.slash-command == 'up' | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,11 @@ jobs: | |
run: | | ||
source ./scripts/tag_latest_release.sh $(echo ${{ github.event.release.tag_name }}) --dry-run | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "[email protected]" | ||
- name: Run latest-tag | ||
uses: ./.github/actions/latest-tag | ||
if: (! ${{ steps.latest-tag.outputs.SKIP_TAG }} ) | ||
|
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
Oops, something went wrong.