Skip to content

Commit

Permalink
inline short CI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitRanque committed Mar 20, 2024
1 parent e177c7b commit 0fa020d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/deploy-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,19 @@ jobs:

- name: generate CLI manifest
run: |
set -evo pipefail
ROOT="$(pwd)"
export CLI_VERSION="$GITHUB_REF_NAME"
./ci/scripts/generate-manifest.sh
export LINUX_AMD64_SHA256=$(sha256sum ${ROOT}/release/artifacts/ndc-clickhouse-cli-x86_64-unknown-linux-musl | cut -f1 -d' ')
export MACOS_AMD64_SHA256=$(sha256sum ${ROOT}/release/artifacts/ndc-clickhouse-cli-x86_64-apple-darwin | cut -f1 -d' ')
export WINDOWS_AMD64_SHA256=$(sha256sum ${ROOT}/release/artifacts/ndc-clickhouse-cli-x86_64-pc-windows-msvc.exe | cut -f1 -d' ')
export LINUX_ARM64_SHA256=$(sha256sum ${ROOT}/release/artifacts/ndc-clickhouse-cli-aarch64-unknown-linux-musl | cut -f1 -d' ')
export MACOS_ARM64_SHA256=$(sha256sum ${ROOT}/release/artifacts/ndc-clickhouse-cli-aarch64-apple-darwin | cut -f1 -d' ')
mkdir -p "${ROOT}/release/"
cat "${ROOT}/ci/templates/manifest.yaml" | envsubst > "${ROOT}/release/manifest.yaml"
- uses: actions/upload-artifact@v4
with:
Expand All @@ -165,9 +176,15 @@ jobs:

- name: Build connector definition
run: |
set -evo pipefail
ROOT="$(pwd)"
export DOCKER_IMAGE="ghcr.io/hasura/ndc-clickhouse:$GITHUB_REF_NAME"
export CLI_VERSION=$GITHUB_REF_NAME
./ci/scripts/generate-connector-definition.sh
mkdir -p "${ROOT}/release/connector-definition/.hasura-connector/"
cat "${ROOT}/ci/templates/connector-metadata.yaml" | envsubst > "${ROOT}/release/connector-definition/.hasura-connector/connector-metadata.yaml"
tar -czvf "${ROOT}/release/artifacts/connector-definition.tgz" "${ROOT}/release/connector-definition/"
- uses: actions/upload-artifact@v4
with:
Expand Down
8 changes: 0 additions & 8 deletions ci/scripts/generate-connector-definition.sh

This file was deleted.

13 changes: 0 additions & 13 deletions ci/scripts/generate-manifest.sh

This file was deleted.

0 comments on commit 0fa020d

Please sign in to comment.