Skip to content

Commit

Permalink
Merge pull request #425 from giantswarm/create-release-manifest-for-crds
Browse files Browse the repository at this point in the history
Add release manifest to Giant Swarm specific image so `cluster-api-provider-aws-app` can fetch CRDs from there instead of having to use GitHub releases
  • Loading branch information
AndiDog authored Feb 8, 2023
2 parents 2c844a4 + 7b3376e commit 94fb8c6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ jobs:
- run:
name: Build the CAPI docker images
command: |
# Add release manifest to our Docker image. These are used by
# https://github.com/giantswarm/cluster-api-provider-aws-app to fetch CRD manifests. We don't create
# GitHub releases as https://github.com/kubernetes-sigs/cluster-api-provider-aws/releases, so our fork
# uses this alternative way of providing the files.
awk '
/RUN.*go-build/ {
print "RUN make release-manifests RELEASE_TAG=REPLACE_ME_RELEASE_TAG REGISTRY=REPLACE_ME_REGISTRY"
}
/COPY --from=builder \/workspace\/manager/ {
print "COPY --from=builder /workspace/out/infrastructure-components.yaml /for-cluster-api-provider-aws-app-only/infrastructure-components.yaml"
}
{ print }
' Dockerfile >/tmp/Dockerfile && mv /tmp/Dockerfile Dockerfile
# `make release-manifests` needs `config/`, `hack/`, `Makefile` and probably more, so just copy
# everything into the Docker context
rm .dockerignore
for registry in $REGISTRY_QUAY $REGISTRY_CHINA; do
make docker-build-all ALL_ARCH="$ALL_ARCH" TAG=$CIRCLE_SHA1 REGISTRY=$registry
Expand Down

0 comments on commit 94fb8c6

Please sign in to comment.