Skip to content

Commit 3e84f6c

Browse files
authored
fix release generate (#265)
1 parent 2d36b19 commit 3e84f6c

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.circleci/base_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ commands:
9292
name: Build
9393
command: |
9494
set +e
95-
cmake --build --preset enterprise-pr --parallel 8 --target arangodbtests arangod arangosh arangoimport arangoexport arangodump arangorestore arangobench fuertetest
95+
cmake --build --preset enterprise-pr --parallel 8 --target arangodbtests arangod arangosh arangoimport arangoexport arangodump arangorestore arangobench fuertetest arangobackup arangovpack
9696
9797
if [ "$?" != "0" ]; then
9898
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''

.circleci/generate_config.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,7 @@ def workflow_generate_scheduled(config):
203203

204204
def workflow_release_arangodb(config):
205205
config = workflow_release_launch_command(config)
206+
config = workflow_release_store_artifacts_command(config)
206207

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

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

320+
321+
def workflow_release_store_artifacts_command(config):
322+
shell = "cd docs-hugo/site/data"
323+
324+
version = args.docs_version
325+
branch = args.arangodb_branch
326+
327+
branchEnv = f"tar -cvf /tmp/{version}-generated.tar {version}/\n"
328+
shell = f"{shell}\n{branchEnv}"
329+
config["commands"]["store-generated-data"]["steps"].append({
330+
"store_artifacts": {
331+
"path": f"/tmp/{version}-generated.tar"
332+
}
333+
})
334+
335+
336+
config["commands"]["store-generated-data"]["steps"][0]["run"]["command"] = shell
337+
return config
338+
319339
def workflow_commit_generated_download_data(config):
320340
cmd = config["commands"]["download-generated-data"]["steps"][0]["run"]["command"]
321341

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

351371
shell = f"{shell}\n\
372+
cd docs-hugo/toolchain/docker/amd64\n \
352373
docker compose up --exit-code-from toolchain\n \
353374
exit $?"
354375

0 commit comments

Comments
 (0)