From bd4d3a802ae7dd2a288ec38a2ecdc96bddd467e7 Mon Sep 17 00:00:00 2001 From: Matt Frazier Date: Fri, 7 Aug 2026 11:34:15 -0400 Subject: [PATCH 1/2] Add build_spec.yaml --- build_spec.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 build_spec.yaml diff --git a/build_spec.yaml b/build_spec.yaml new file mode 100644 index 000000000..c02485896 --- /dev/null +++ b/build_spec.yaml @@ -0,0 +1,40 @@ +version: 0.1 +component: build +timeoutInSeconds: 3600 +shell: bash +failImmediatelyOnError: true +env: + variables: + GENERIC_BUILD_PIPELINE_OCID: "ocid1.devopsbuildpipeline.oc1.iad.amaaaaaa2jd6obqazeiqmcdnextophmsh2n5a5zt5aoty5hrddd5n6b5rmhq" + HELM_CHART_NAME: "angular-osf" + GIT_REPO_URL: "https://github.com/CenterForOpenScience/angular-osf.git" +steps: + - type: Command + name: "Install jq" + command: | + VERSION=1.8.2 + PLATFORM=linux-amd64 + wget https://github.com/jqlang/jq/releases/download/jq-${VERSION}/jq-${PLATFORM} -O /usr/local/bin/jq &&\ + chmod +x /usr/local/bin/jq + - type: Command + name: "Trigger Generic CICD Pipes" + command: | + GIT_BRANCH="${OCI_PRIMARY_SOURCE_BRANCH_NAME}" + GIT_COMMIT="${OCI_PRIMARY_SOURCE_COMMIT_HASH}" + # Trigger generic pipes with vars/params + build_run_arguments=$(jq -cn \ + --arg helm_chart_name "${HELM_CHART_NAME}" \ + --arg git_repo_url "${GIT_REPO_URL}" \ + --arg git_branch "${GIT_BRANCH}" \ + --arg git_commit "${GIT_COMMIT}" \ + '{"items": [ + {"name": "HELM_CHART_NAME", "value": $helm_chart_name}, + {"name": "GIT_REPO_URL", "value": $git_repo_url}, + {"name": "GIT_BRANCH", "value": $git_branch}, + {"name": "GIT_COMMIT", "value": $git_commit} + ]}') + + oci devops build-run create \ + --build-pipeline-id "${GENERIC_BUILD_PIPELINE_OCID}" \ + --display-name "build-${HELM_CHART_NAME}-${GIT_BRANCH}-${GIT_COMMIT}" \ + --build-run-arguments "${build_run_arguments}" From 27ed3a149fffd65dfc67ab6c309c61b342cb87af Mon Sep 17 00:00:00 2001 From: Matt Frazier Date: Thu, 27 Aug 2026 10:53:30 -0400 Subject: [PATCH 2/2] Exclude build_spec.yaml from prettier linting --- .prettierignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.prettierignore b/.prettierignore index c724743f7..c967e39cb 100644 --- a/.prettierignore +++ b/.prettierignore @@ -35,7 +35,8 @@ yarn-error.log testem.log /typings /public +build_spec.yaml # System files .DS_Store -Thumbs.db \ No newline at end of file +Thumbs.db