Skip to content

Commit

Permalink
Building and pushing kots images
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Feb 26, 2020
1 parent 7f8b43b commit 5f18b1e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ jobs:
path: bin/
- run: chmod +x bin/kubectl-schemahero

- run: make kotsimages
env:
SHA: $(echo ${GITHUB_SHA} | cut -c1-7)

- run: ./bin/kubectl-schemahero install --yaml --out-dir=./kots --enterprise --namespace="repl{{ Namespace }}"
env:
SHA: $(echo ${GITHUB_SHA} | cut -c1-7)

- name: Lint the release
id: lint-action
Expand All @@ -106,6 +112,7 @@ jobs:
replicated-app: "schemahero-enterprise"
replicated-api-token: ${{ secrets.REPLICATED_API_TOKEN }}
yaml-dir: kots

- name: Create the release
id: test-action
uses: replicatedhq/action-kots-release@v0.2.0
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ microk8s: bin/schemahero bin/kubectl-schemahero manager
docker tag schemahero/schemahero localhost:32000/schemahero/schemahero:latest
docker push localhost:32000/schemahero/schemahero:latest

.PHONY: kotsimages
kotsimages:
bin/schemahero bin/kubectl-schemahero manager
docker build -t schemahero/schemahero -f ./Dockerfile.schemahero .
docker tag schemahero/schemahero registry.replicated.com/schemahero-enterprise/schemahero:$(ENV)
docker push registry.replicated.com/schemahero-enterprise/schemahero:$(ENV)

.PHONY: contoller-gen
controller-gen:
ifeq (, $(shell which controller-gen))
Expand Down

0 comments on commit 5f18b1e

Please sign in to comment.