Skip to content
Snippets Groups Projects
Unverified Commit 0b3db5b6 authored by Damien Grisonnet's avatar Damien Grisonnet Committed by GitHub
Browse files

Merge pull request #1245 from paulfantom/make-update

*: add "update" target to makefile and use it in automatic updater
parents 60b4b302 ed2ffe9d
No related branches found
No related tags found
No related merge requests found
...@@ -17,13 +17,10 @@ jobs: ...@@ -17,13 +17,10 @@ jobs:
# Write to temporary file to make update atomic # Write to temporary file to make update atomic
scripts/generate-versions.sh > /tmp/versions.json scripts/generate-versions.sh > /tmp/versions.json
mv /tmp/versions.json jsonnet/kube-prometheus/versions.json mv /tmp/versions.json jsonnet/kube-prometheus/versions.json
- name: Install jsonnet bundler
run: |
go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
- name: Update jsonnet dependencies - name: Update jsonnet dependencies
run: | run: |
jb update make update
make --always-make generate make generate
# Reset jsonnetfile.lock.json if no dependencies were updated # Reset jsonnetfile.lock.json if no dependencies were updated
changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json') changedFiles=$(git diff --name-only | grep -v 'jsonnetfile.lock.json')
......
...@@ -38,6 +38,10 @@ vendor: $(JB_BIN) jsonnetfile.json jsonnetfile.lock.json ...@@ -38,6 +38,10 @@ vendor: $(JB_BIN) jsonnetfile.json jsonnetfile.lock.json
crdschemas: vendor crdschemas: vendor
./scripts/generate-schemas.sh ./scripts/generate-schemas.sh
.PHONY: update
update: $(JB_BIN)
$(JB_BIN) update
.PHONY: validate .PHONY: validate
validate: crdschemas manifests $(KUBECONFORM_BIN) validate: crdschemas manifests $(KUBECONFORM_BIN)
$(KUBECONFORM_BIN) -kubernetes-version $(KUBE_VERSION) -schema-location 'default' -schema-location 'crdschemas/{{ .ResourceKind }}.json' -skip CustomResourceDefinition manifests/ $(KUBECONFORM_BIN) -kubernetes-version $(KUBE_VERSION) -schema-location 'default' -schema-location 'crdschemas/{{ .ResourceKind }}.json' -skip CustomResourceDefinition manifests/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment