@@ -38,12 +38,12 @@ workflows:
38
38
requires : [ lint, test ]
39
39
filters : { <<: *tag-or-master }
40
40
41
- # - test-helm:
42
- # requires: [ lint, test ]
43
- # filters: {<<: *tags}
44
- # - publish-helm:
45
- # requires: [ test-helm ]
46
- # filters: {<<: *tags }
41
+ - test-helm :
42
+ requires : [ lint, test ]
43
+ filters : {<<: *tags}
44
+ - publish-helm :
45
+ requires : [ test-helm ]
46
+ filters : {<<: *tag-or-master }
47
47
48
48
49
49
# https://circleci.com/blog/circleci-hacks-reuse-yaml-in-your-circleci-config-with-yaml/
@@ -158,76 +158,44 @@ jobs:
158
158
environment :
159
159
APP : promtail
160
160
161
- # test-helm:
162
- # environment:
163
- # CT_VERSION: 2.3.3
164
- # machine:
165
- # image: ubuntu-1604:201903-01
166
- # steps:
167
- # - checkout
168
- # - run:
169
- # name: Install k3s
170
- # command: |
171
- # curl -sfL https://get.k3s.io | sh -
172
- # sudo chmod 755 /etc/rancher/k3s/k3s.yaml
173
- # mkdir -p ~/.kube
174
- # cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
175
- # - run:
176
- # name: Install Helm
177
- # command: |
178
- # curl -L https://git.io/get_helm.sh | bash
179
- # kubectl apply -f tools/helm.yaml
180
- # helm init --service-account helm --wait
181
- # - run:
182
- # name: Install Chart Testing tool
183
- # command: |
184
- # pip install yamale yamllint
185
- # curl -Lo ct.tgz https://github.com/helm/chart-testing/releases/download/v${CT_VERSION}/chart-testing_${CT_VERSION}_linux_amd64.tar.gz
186
- # sudo tar -C /usr/local/bin -xvf ct.tgz
187
- # sudo mv /usr/local/bin/etc /etc/ct/
188
- # - run:
189
- # name: Run Chart Tests
190
- # command: |
191
- # ct lint --chart-dirs=production/helm --check-version-increment=false --validate-maintainers=false
192
- # ct install --build-id=${CIRCLE_BUILD_NUM} --charts production/helm/loki-stack
193
-
194
- # publish-helm:
195
- # <<: *defaults
196
- # steps:
197
- # - add_ssh_keys:
198
- # fingerprints:
199
- # - "5a:d3:08:5e:f7:53:a0:c4:e9:5d:83:c6:02:6a:d9:bd"
200
- # - checkout
201
- # - run: make helm-publish
202
-
203
- # deploy:
204
- # <<: *defaults
205
- # steps:
206
- # - checkout
207
-
208
- # - run: |
209
- # curl -s --header "Content-Type: application/json" \
210
- # --data "{\"build_parameters\": {\"CIRCLE_JOB\": \"deploy\", \"IMAGE_NAMES\": \"$(make images)\"}}" \
211
- # --request POST \
212
- # https://circleci.com/api/v1.1/project/github/raintank/deployment_tools/tree/master?circle-token=$CIRCLE_TOKEN
213
-
214
- # release:
215
- # <<: *defaults
216
- # steps:
217
- # - checkout
218
- # - setup_remote_docker
219
- # - restore_cache:
220
- # key: v1-loki-{{ .Branch }}-{{ .Revision }}
221
- # - run:
222
- # name: Load Images
223
- # command: |
224
- # touch loki-build-image/.uptodate &&
225
- # make BUILD_IN_CONTAINER=false load-images
226
- # - run:
227
- # name: "Print Tag"
228
- # command: echo ${CIRCLE_TAG}
229
- # - run:
230
- # name: "Release"
231
- # command: |
232
- # docker login -u "$DOCKER_USER" -p "$DOCKER_PASS" &&
233
- # make VERSION=${CIRCLE_TAG} release-perform
161
+ test-helm :
162
+ environment :
163
+ CT_VERSION : 2.3.3
164
+ machine :
165
+ image : ubuntu-1604:201903-01
166
+ steps :
167
+ - checkout
168
+ - run :
169
+ name : Install k3s
170
+ command : |
171
+ curl -sfL https://get.k3s.io | sh -
172
+ sudo chmod 755 /etc/rancher/k3s/k3s.yaml
173
+ mkdir -p ~/.kube
174
+ cp /etc/rancher/k3s/k3s.yaml ~/.kube/config
175
+ - run :
176
+ name : Install Helm
177
+ command : |
178
+ curl -L https://git.io/get_helm.sh | bash
179
+ kubectl apply -f tools/helm.yaml
180
+ helm init --service-account helm --wait
181
+ - run :
182
+ name : Install Chart Testing tool
183
+ command : |
184
+ pip install yamale yamllint
185
+ curl -Lo ct.tgz https://github.com/helm/chart-testing/releases/download/v${CT_VERSION}/chart-testing_${CT_VERSION}_linux_amd64.tar.gz
186
+ sudo tar -C /usr/local/bin -xvf ct.tgz
187
+ sudo mv /usr/local/bin/etc /etc/ct/
188
+ - run :
189
+ name : Run Chart Tests
190
+ command : |
191
+ ct lint --chart-dirs=production/helm --check-version-increment=false --validate-maintainers=false
192
+ ct install --build-id=${CIRCLE_BUILD_NUM} --charts production/helm/loki-stack
193
+
194
+ publish-helm :
195
+ << : *defaults
196
+ steps :
197
+ - add_ssh_keys :
198
+ fingerprints :
199
+ - " 5a:d3:08:5e:f7:53:a0:c4:e9:5d:83:c6:02:6a:d9:bd"
200
+ - checkout
201
+ - run : make helm-publish
0 commit comments