Skip to content

Commit

Permalink
Merge pull request #572 from replicatedhq/divolgin/builds
Browse files Browse the repository at this point in the history
github actions for kotsadm
  • Loading branch information
divolgin committed May 21, 2020
2 parents 56f5dbf + b984152 commit 234fbf6
Show file tree
Hide file tree
Showing 8 changed files with 577 additions and 12 deletions.
565 changes: 565 additions & 0 deletions .github/workflows/kotsadm.yaml

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions kotsadm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ build-ttl-ci.sh:

.PHONY: build-alpha
build-alpha:
docker build -f deploy/Dockerfile --build-arg version=${BUILDKITE_COMMIT} -t kotsadm/kotsadm:alpha .
docker build -f deploy/Dockerfile --build-arg version=${GIT_COMMIT} -t kotsadm/kotsadm:alpha .
docker push kotsadm/kotsadm:alpha

.PHONY: build-release
build-release:
docker build -f deploy/Dockerfile --build-arg version=${BUILDKITE_TAG} -t kotsadm/kotsadm:${BUILDKITE_TAG} .
docker push kotsadm/kotsadm:${BUILDKITE_TAG}
docker build -f deploy/Dockerfile --build-arg version=${GIT_TAG} -t kotsadm/kotsadm:${GIT_TAG} .
docker push kotsadm/kotsadm:${GIT_TAG}

.PHONY: project-pact-tests
project-pact-tests:
Expand Down
4 changes: 2 additions & 2 deletions kotsadm/api/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ build-alpha: IMAGE = kotsadm/${PROJECT_NAME}:alpha
build-alpha: build_and_push

.PHONY: build-release
build-release: IMAGE = kotsadm/${PROJECT_NAME}:${BUILDKITE_TAG}
build-release: IMAGE = kotsadm/${PROJECT_NAME}:${GIT_TAG}
build-release: build_and_push

.PHONY: build_and_push
build_and_push:
docker build -f deploy/Dockerfile -t ${IMAGE} --build-arg commit="$${BUILDKITE_COMMIT:0:7}" --no-cache .
docker build -f deploy/Dockerfile -t ${IMAGE} --build-arg commit="$${GIT_COMMIT:0:7}" --no-cache .
docker push ${IMAGE}

.PHONY: no-yarn
Expand Down
4 changes: 2 additions & 2 deletions kotsadm/kurl_proxy/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ build-alpha:

.PHONY: build-release
build-release:
docker build -f deploy/Dockerfile -t kotsadm/kurl-proxy:${BUILDKITE_TAG} .
docker push kotsadm/kurl-proxy:${BUILDKITE_TAG}
docker build -f deploy/Dockerfile -t kotsadm/kurl-proxy:${GIT_TAG} .
docker push kotsadm/kurl-proxy:${GIT_TAG}
2 changes: 1 addition & 1 deletion kotsadm/migrations/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ schema-alpha: IMAGE = kotsadm/${PROJECT_NAME}:alpha
schema-alpha: build_schema

.PHONY: schema-release
schema-release: IMAGE = kotsadm/${PROJECT_NAME}:${BUILDKITE_TAG}
schema-release: IMAGE = kotsadm/${PROJECT_NAME}:${GIT_TAG}
schema-release: build_schema

.PHONY: build-ttl-ci.sh
Expand Down
2 changes: 1 addition & 1 deletion kotsadm/minio/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ publish-latest: IMAGE_TAG = alpha
publish-latest: publish

.PHONY: publish-release
publish-release: IMAGE_TAG = ${BUILDKITE_TAG}
publish-release: IMAGE_TAG = ${GIT_TAG}
publish-release: publish
4 changes: 2 additions & 2 deletions kotsadm/operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ build-alpha:

.PHONY: build-release
build-release:
docker build -f deploy/Dockerfile -t kotsadm/kotsadm-operator:${BUILDKITE_TAG} .
docker push kotsadm/kotsadm-operator:${BUILDKITE_TAG}
docker build -f deploy/Dockerfile -t kotsadm/kotsadm-operator:${GIT_TAG} .
docker push kotsadm/kotsadm-operator:${GIT_TAG}
2 changes: 1 addition & 1 deletion kotsadm/web/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ build-local:
--compress

.PHONY: build-kotsadm
build-kotsadm: SHIP_CLUSTER_BUILD_VERSION = $(if ${BUILDKITE_TAG},${BUILDKITE_TAG},$(shell echo ${BUILDKITE_COMMIT} | cut -c1-7))
build-kotsadm: SHIP_CLUSTER_BUILD_VERSION = $(if ${GIT_TAG},${GIT_TAG},$(shell echo ${GIT_COMMIT} | cut -c1-7))
build-kotsadm:
SHIP_CLUSTER_BUILD_VERSION=$(SHIP_CLUSTER_BUILD_VERSION) \
node \
Expand Down

0 comments on commit 234fbf6

Please sign in to comment.