-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use github actions * add github workflow * drop slash * Fix image * specify dir * deploy charts to S3 * Update CURRENT_REPO_URL * rename env * fix env * use github.ref instead * use phony targets * upgrade build-harness * handle chart repos * add tests * augment tests * only attempt to publish charts from cloudposse * update conditional * change entrypoint * refactor tests * deprecate travis
- Loading branch information
Showing
77 changed files
with
140 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Charts | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the pull request branch | ||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Determine Chart Repo | ||
id: helm_chart | ||
run: | | ||
if [[ ${GITHUB_REF} == 'refs/heads/master' ]]; then | ||
echo "::set-output name=bucket_url::s3://cloudposse-charts/" | ||
echo "::set-output name=repo_url::https://charts.cloudposse.com" | ||
else | ||
echo "::set-output name=bucket_url::s3://cloudposse-dev-charts/${GITHUB_REF}/" | ||
echo "::set-output name=repo_url::https://charts.dev.cloudposse.com/${GITHUB_REF}" | ||
fi | ||
env: | ||
GITHUB_REF: ${{ github.ref }} | ||
|
||
- name: Build Chart Packages | ||
uses: "docker://cloudposse/build-harness:0.37.0" | ||
with: | ||
args: "-C incubator all" | ||
env: | ||
HELM_CHART_REPO_URL: ${{ steps.helm_chart.outputs.repo_url }} | ||
|
||
- name: Generate Index | ||
uses: "docker://cloudposse/build-harness:0.37.0" | ||
with: | ||
args: "-C packages all" | ||
env: | ||
HELM_CHART_REPO_URL: ${{ steps.helm_chart.outputs.repo_url }} | ||
|
||
- name: Publish Charts to Chart Repository | ||
if: success() && github.repository == 'cloudposse/charts' | ||
run: aws s3 sync --acl public-read packages/ ${{ steps.helm_chart.outputs.bucket_url }} --exclude '*' --include '*.tgz' --include '*.yaml' | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
|
||
- name: Test | ||
if: success() && github.repository == 'cloudposse/charts' | ||
uses: "docker://cloudposse/build-harness:0.37.0" | ||
with: | ||
args: "-C test all" | ||
env: | ||
HELM_CHART_REPO_URL: ${{ steps.helm_chart.outputs.repo_url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
SHELL = /bin/bash | ||
export BUILD_HARNESS_PATH ?= $(shell until [ -d "build-harness" ] || [ "`pwd`" == '/' ]; do cd ..; done; pwd)/build-harness | ||
-include $(BUILD_HARNESS_PATH)/Makefile | ||
-include $(shell curl -sSL -o .build-harness "https://git.io/build-harness"; echo .build-harness) | ||
build: | ||
docker run -v $(CURDIR)/incubator:/build-harness/incubator -v $(CURDIR)/packages:/build-harness/packages \ | ||
-e HELM_CHART_REPO_URL=https://charts.cloudposse.com/incubator \ | ||
cloudposse/build-harness:0.36.0 -C incubator all | ||
|
||
export PATH:=$(PATH):$(BUILD_HARNESS_PATH)/vendor | ||
index: | ||
docker run -v $(CURDIR)/incubator:/build-harness/incubator -v $(CURDIR)/packages:/build-harness/packages \ | ||
-e HELM_CHART_REPO_URL=https://charts.cloudposse.com/incubator \ | ||
cloudposse/build-harness:0.36.0 -C packages all | ||
|
||
.PHONY : init | ||
## Init build-harness | ||
init:: | ||
@curl --retry 5 --retry-delay 1 https://raw.githubusercontent.com/cloudposse/build-harness/master/bin/install.sh | bash | ||
|
||
.PHONY : clean | ||
## Clean build-harness | ||
clean:: | ||
@rm -rf $(BUILD_HARNESS_PATH) | ||
all: build index | ||
@exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Helm 3 | ||
HELM=helm | ||
STAGE=$(notdir $(CURDIR)) | ||
PACKAGES_DIR=../packages/$(STAGE) | ||
|
||
CHARTS = $(wildcard */) | ||
|
||
all: deps $(wildcard */) | ||
|
||
deps: | ||
$(HELM) repo add kubernetes-incubator https://kubernetes-charts-incubator.storage.googleapis.com/ | ||
$(HELM) repo add cloudposse-incubator https://charts.cloudposse.com/incubator/ | ||
$(HELM) repo add kuberentes-stable https://kubernetes-charts.storage.googleapis.com | ||
$(HELM) repo add kubernetes-stable-alt http://storage.googleapis.com/kubernetes-charts | ||
mkdir -p $(PACKAGES_DIR) | ||
|
||
clean: | ||
rm -f *.tgz */requirements.lock | ||
rm -rf */tmpcharts/ | ||
|
||
.PHONY : $(CHARTS) | ||
$(CHARTS): CHART ?= $(@D) | ||
$(CHARTS): VERSION ?= $(shell yq r $(CHART)/Chart.yaml version) | ||
$(CHARTS): PACKAGE ?= $(CHART)-$(VERSION).tgz | ||
$(CHARTS): | ||
@echo "# Building package for $(CHART) ($(PACKAGE))" | ||
@$(HELM) dependency build --debug $@ | ||
@$(HELM) package --debug $@ | ||
mv -f $(PACKAGE) $(PACKAGES_DIR) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
apiVersion: v1 | ||
name: cert-manager | ||
version: v0.7.0 | ||
appVersion: v0.7.0 | ||
|
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
apiVersion: v1 | ||
description: |- | ||
Use GitHub teams to manage system user accounts and authorized_keys. | ||
WARNING: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file modified
0
incubator/teleport-ent-proxy/templates/clusterrolebinding.yaml
100755 → 100644
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
apiVersion: v1 | ||
name: teleport | ||
version: 0.0.2 | ||
description: Teleport Enterprise | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
HELM ?= helm | ||
CURL ?= curl | ||
HELM_CHART_REPO_URL ?= https://charts.cloudposse.com | ||
|
||
%/index.yaml: $(wildcard */*.tgz) | ||
@$(CURL) --fail -s -q $(HELM_CHART_REPO_URL)/$@ -o /tmp/index.yaml; \ | ||
if [ $$? -eq 0 ]; then \ | ||
echo "## Merging index with $(HELM_CHART_REPO_URL)/$(dir $@)"; \ | ||
$(HELM) repo index $(dir $@) --merge /tmp/index.yaml --url $(HELM_CHART_REPO_URL)/$(dir $@) --debug; \ | ||
else \ | ||
echo "## Generating new index for $(HELM_CHART_REPO_URL)/$(dir $@)"; \ | ||
$(HELM) repo index $(dir $@) --url $(HELM_CHART_REPO_URL)/$(dir $@) --debug; \ | ||
fi; | ||
|
||
incubator/: incubator/index.yaml | ||
|
||
all: incubator/index.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
all: monochart | ||
|
||
# Test incubator repo | ||
monochart: HELM_CHART_REPO_URL ?= https://charts.cloudposse.com | ||
monochart: HELM_CHART_VERSION ?= $(shell yq r ../incubator/monochart/Chart.yaml version) | ||
monochart: | ||
@echo "Testing for monochart $(HELM_CHART_VERSION)..." | ||
helm repo add test-incubator $(HELM_CHART_REPO_URL)/incubator | ||
helm repo update | ||
helm search repo test-incubator/monochart -l -o table --version $(HELM_CHART_VERSION) | grep -qv "No results found" | ||
helm pull test-incubator/monochart --version $(HELM_CHART_VERSION) | ||
@echo "Success!" | ||
|