Skip to content

Commit aba3aee

Browse files
authored
fix: release pipeline (#144)
Signed-off-by: Zach Aller <[email protected]>
1 parent 2309b39 commit aba3aee

File tree

3 files changed

+21
-15
lines changed

3 files changed

+21
-15
lines changed

config/default/kustomization.yaml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ namePrefix: promoter-
1515
# someName: someValue
1616

1717
resources:
18-
- ../crd
19-
- ../rbac
20-
- ../manager
18+
- ../crd
19+
- ../rbac
20+
- ../manager
2121
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
2222
# crd/kustomization.yaml
2323
#- ../webhook
@@ -27,15 +27,10 @@ resources:
2727
#- ../prometheus
2828

2929
patches:
30-
# Protect the /metrics endpoint by putting it behind auth.
31-
# If you want your controller-manager to expose the /metrics
32-
# endpoint w/o any authn/z, please comment the following line.
33-
- path: manager_auth_proxy_patch.yaml
34-
35-
images:
36-
- name: argoproj-labs/gitops-promoter
37-
newName: quay.io/argoprojlabs/gitops-promoter
38-
newTag: v0.0.0
30+
# Protect the /metrics endpoint by putting it behind auth.
31+
# If you want your controller-manager to expose the /metrics
32+
# endpoint w/o any authn/z, please comment the following line.
33+
- path: manager_auth_proxy_patch.yaml
3934

4035
# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in
4136
# crd/kustomization.yaml
@@ -144,4 +139,4 @@ images:
144139
# options:
145140
# delimiter: '.'
146141
# index: 1
147-
# create: true
142+
# create: true

config/release/kustomization.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
resources:
2+
- ../default
3+
4+
images:
5+
- name: argoproj-labs/gitops-promoter
6+
newName: quay.io/argoprojlabs/gitops-promoter
7+
newTag: latest
8+
- name: quay.io/argoprojlabs/gitops-promoter
9+
newTag: v0.0.0
10+
apiVersion: kustomize.config.k8s.io/v1beta1
11+
kind: Kustomization

hack/manifests-release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ IMAGE_NAMESPACE="${IMAGE_NAMESPACE:-quay.io/argoprojlabs/gitops-promoter}"
2020
IMAGE_FQN="$IMAGE_NAMESPACE:$IMAGE_TAG"
2121

2222
$KUSTOMIZE version
23-
cd "${SRCROOT}/config/default" && $KUSTOMIZE edit set image "argoproj-labs/gitops-promoter=${IMAGE_FQN}"
23+
cd "${SRCROOT}/config/release" && $KUSTOMIZE edit set image "argoproj-labs/gitops-promoter=${IMAGE_FQN}"
2424
echo "${AUTOGENMSG}" > "${SRCROOT}/install.yaml"
25-
$KUSTOMIZE build "${SRCROOT}/config/default" >> "${SRCROOT}/install.yaml"
25+
$KUSTOMIZE build "${SRCROOT}/config/release" >> "${SRCROOT}/install.yaml"

0 commit comments

Comments
 (0)