Skip to content

Commit

Permalink
No alpha, only taggged
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Jan 17, 2020
1 parent 35c896b commit f611ef3
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 186 deletions.
101 changes: 0 additions & 101 deletions .github/workflows/alpha-release.yaml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/tagged-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ jobs:

goreleaser:
runs-on: ubuntu-latest
needs:
- test-postgres
- test-mysql
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -95,6 +98,6 @@ jobs:
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist --config deploy/.goreleaser.yml
args: release --rm-dist --config deploy/.goreleaser.yaml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
14 changes: 0 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -104,26 +104,12 @@ bin/kubectl-schemahero:
./cmd/kubectl-schemahero
@echo "built bin/kubectl-schemahero"

.PHONY: snapshot-release
snapshot-release: build-snapshot-release
docker push schemahero/schemahero:alpha
docker push schemahero/schemahero-manager:alpha

.PHONY: build-snapshot-release
build-snapshot-release:
curl -sL https://git.io/goreleaser | bash -s -- --rm-dist --snapshot --config deploy/.goreleaser.snapshot.yml

.PHONY: microk8s
microk8s: bin/schemahero bin/kubectl-schemahero manager
docker build -t schemahero/schemahero -f ./Dockerfile.schemahero .
docker tag schemahero/schemahero localhost:32000/schemahero/schemahero:latest
docker push localhost:32000/schemahero/schemahero:latest

.PHONY: release
release: export GITHUB_TOKEN = $(shell echo ${GITHUB_TOKEN_REPLICATEDBOT})
release:
curl -sL https://git.io/goreleaser | bash -s -- --rm-dist --config deploy/.goreleaser.yml

.PHONY: contoller-gen
controller-gen:
ifeq (, $(shell which controller-gen))
Expand Down
31 changes: 26 additions & 5 deletions deploy/.goreleaser.snapshot.yml → deploy/.goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,25 @@ builds:
flags: -tags netgo -installsuffix netgo
binary: schemahero
hooks: {}
- id: kubectl-schemahero
goos:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
env:
- CGO_ENABLED=0
main: cmd/kubectl-schemahero/main.go
ldflags: -s -w
-X github.com/schemahero/schemahero/pkg/version.version={{.Version}}
-X github.com/schemahero/schemahero/pkg/version.gitSHA={{.Commit}}
-X github.com/schemahero/schemahero/pkg/version.buildTime={{.Date}}
-extldflags "-static"
flags: -tags netgo -installsuffix netgo
binary: kubectl-schemahero
hooks: {}
- id: manager
goos:
- linux
Expand All @@ -42,7 +61,7 @@ builds:
archives:
- id: tar
format: tar.gz
name_template: '{{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{.Arm }}{{ end }}-alpha'
name_template: "{{ .Binary }}_{{ .Os }}_{{ .Arch }}"
files:
- licence*
- LICENCE*
Expand All @@ -55,13 +74,15 @@ archives:
dockers:
- dockerfile: ./deploy/Dockerfile.schemahero
image_templates:
- "schemahero/schemahero:alpha"
- "schemahero/schemahero:{{.Major}}"
- "schemahero/schemahero:{{.Major}}.{{.Minor}}"
- "schemahero/schemahero:{{.Major}}.{{.Minor}}.{{.Patch}}"
binaries:
- schemahero
- dockerfile: ./deploy/Dockerfile.manager
image_templates:
- "schemahero/schemahero-manager:alpha"
- "schemahero/schemahero-manager:{{.Major}}"
- "schemahero/schemahero-manager:{{.Major}}.{{.Minor}}"
- "schemahero/schemahero-manager:{{.Major}}.{{.Minor}}.{{.Patch}}"
binaries:
- manager
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
65 changes: 0 additions & 65 deletions deploy/.goreleaser.yml

This file was deleted.

0 comments on commit f611ef3

Please sign in to comment.