UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 4595a7ce authored by Micah Nagel's avatar Micah Nagel Committed by joshwolf
Browse files

Resolve "Release pipeline always clones from `main`"

parent 7e646522
No related branches found
No related tags found
1 merge request!327Resolve "Release pipeline always clones from `main`"
......@@ -309,7 +309,7 @@ aws/rke2/cluster down:
package:
stage: package
image: registry.dso.mil/platform-one/big-bang/bigbang/synker:0.0.1
image: registry.dso.mil/platform-one/big-bang/bigbang/synker:0.0.2
extends:
- .bigbang-dogfood
rules:
......
......@@ -4,11 +4,11 @@ set -ex
mkdir -p repos/
# Clone core
yq r "chart/values.yaml" "*.git.repo" | while IFS= read -r repo; do
git -C repos/ clone --no-checkout $repo
yq e ".*.git.repo | select(. != null) | path | .[-3] " "chart/values.yaml" | while IFS= read -r package; do
git -C repos/ clone -b $(yq e ".${package}.git.tag" "chart/values.yaml") $(yq e ".${package}.git.repo" "chart/values.yaml")
done
# Clone packages
yq r "chart/values.yaml" "addons.*.git.repo" | while IFS= read -r repo; do
git -C repos/ clone --no-checkout $repo
# Clone addons
yq e ".addons.*.git.repo | select(. != null) | path | .[-3]" "chart/values.yaml" | while IFS= read -r package; do
git -C repos/ clone -b $(yq e ".addons.${package}.git.tag" "chart/values.yaml") $(yq e ".addons.${package}.git.repo" "chart/values.yaml")
done
......@@ -19,7 +19,7 @@ COPY --from=builder /go/synker/synker /usr/local/bin/synker
RUN yum install -y unzip git jq
# Install yq
RUN curl -sfL -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/3.4.1/yq_linux_amd64 && \
RUN curl -sfL -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/download/v4.6.1/yq_linux_amd64 && \
chmod +x /usr/local/bin/yq
# Install aws cli
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment