92
92
fetch : false
93
93
holobranch : fixtures
94
94
95
+ - id : helm-projection
96
+ name : ' Project holobranch: helm-chart'
97
+ uses : JarvusInnovations/hologit@actions/projector/v1
98
+ with :
99
+ # use HEAD checked out above by checkout action
100
+ ref : HEAD
101
+ fetch : false
102
+ holobranch : helm-chart
103
+
95
104
- name : Build & push Docker image
96
105
uses : whoan/docker-build-with-cache-action@v5
97
106
with :
@@ -116,8 +125,6 @@ jobs:
116
125
117
126
- name : Deploy instance via Helm template
118
127
run : |
119
- set -e
120
-
121
128
docker_image="${DOCKER_REGISTRY}/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}:${RELEASE_NAME}"
122
129
release_hostname="${RELEASE_NAME}.${KUBE_HOSTNAME}"
123
130
@@ -130,14 +137,21 @@ jobs:
130
137
| sort \
131
138
| tee ./.pods-before
132
139
133
- echo "Using helm upgrade to apply ./helm-chart to release ${RELEASE_NAME}"
134
- helm upgrade "${RELEASE_NAME}" ./helm-chart \
140
+ echo "Extracting projected helm-chart to temporary directory"
141
+ temp_dir=$(mktemp -d)
142
+ git archive --format=tar "${{ steps.site-projection.outputs.tree }}" | ( cd "${temp_dir}" && tar -xf - )
143
+
144
+ echo "Using helm upgrade to apply helm-chart to release ${RELEASE_NAME}"
145
+ helm upgrade "${RELEASE_NAME}" "${temp_dir}" \
135
146
--install \
136
- --set name="${RELEASE_NAME}" \
137
- --set namespace="${KUBE_NAMESPACE}" \
138
- --set image="${docker_image}" \
139
- --set hostname="${release_hostname}" \
140
- --set hab.runtime.error.display=true
147
+ --namespace "${KUBE_NAMESPACE}" \
148
+ --set site.name="${RELEASE_NAME}" \
149
+ --set site.title="laddr/${RELEASE_NAME}" \
150
+ --set site.image.repository="${DOCKER_REGISTRY}/${DOCKER_REPOSITORY}/${DOCKER_PACKAGE}" \
151
+ --set site.image.tag="${RELEASE_NAME}" \
152
+ --set ingress.enabled=true \
153
+ --set site.canonicalHostname="${release_hostname}" \
154
+ --set site.displayErrors=true
141
155
142
156
echo "Listing pods existing after deploy"
143
157
kubectl get pods \
0 commit comments