Skip to content

fix release generate #265

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/base_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ commands:
name: Build
command: |
set +e
cmake --build --preset enterprise-pr --parallel 8 --target arangodbtests arangod arangosh arangoimport arangoexport arangodump arangorestore arangobench fuertetest
cmake --build --preset enterprise-pr --parallel 8 --target arangodbtests arangod arangosh arangoimport arangoexport arangodump arangorestore arangobench fuertetest arangobackup arangovpack

if [ "$?" != "0" ]; then
echo "**ArangoDB Compile Error**<br><br> Please check CircleCI Logs" | curl -X POST -d@- https://candid-daffodil-f96315.netlify.app/.netlify/functions/circleci --header 'docs-webhook-event: create-summary' --header 'docs-branch-sha: '$CIRCLE_SHA1'' --header 'docs-branch-name: '$CIRCLE_BRANCH''
Expand Down
21 changes: 21 additions & 0 deletions .circleci/generate_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def workflow_generate_scheduled(config):

def workflow_release_arangodb(config):
config = workflow_release_launch_command(config)
config = workflow_release_store_artifacts_command(config)

jobs = config["workflows"]["release"]["jobs"]

Expand Down Expand Up @@ -316,6 +317,25 @@ def workflow_generate_store_artifacts_command(config):
config["commands"]["store-generated-data"]["steps"][0]["run"]["command"] = shell
return config


def workflow_release_store_artifacts_command(config):
shell = "cd docs-hugo/site/data"

version = args.docs_version
branch = args.arangodb_branch

branchEnv = f"tar -cvf /tmp/{version}-generated.tar {version}/\n"
shell = f"{shell}\n{branchEnv}"
config["commands"]["store-generated-data"]["steps"].append({
"store_artifacts": {
"path": f"/tmp/{version}-generated.tar"
}
})


config["commands"]["store-generated-data"]["steps"][0]["run"]["command"] = shell
return config

def workflow_commit_generated_download_data(config):
cmd = config["commands"]["download-generated-data"]["steps"][0]["run"]["command"]

Expand Down Expand Up @@ -349,6 +369,7 @@ def workflow_release_launch_command(config):
shell = f"{shell}\n{branchEnv}"

shell = f"{shell}\n\
cd docs-hugo/toolchain/docker/amd64\n \
docker compose up --exit-code-from toolchain\n \
exit $?"

Expand Down