-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "Revert "build: upgrade dependencies (#20)" (#21)" This reverts commit 6e1e1c4. * ci: upgrade goreleaser config * ci: bump app version * ci: fix `codefresh.yaml` * ci(goreleaser): fix name template
- Loading branch information
1 parent
6e1e1c4
commit 230bf9d
Showing
7 changed files
with
82 additions
and
59 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 |
---|---|---|
@@ -1,36 +1,35 @@ | ||
version: 2 | ||
builds: | ||
- | ||
goos: | ||
- linux | ||
- windows | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- 386 | ||
env: | ||
- CGO_ENABLED=0 | ||
- goos: | ||
- 'linux' | ||
- 'windows' | ||
- 'darwin' | ||
goarch: | ||
- 'amd64' | ||
- 'arm64' | ||
- '386' | ||
env: | ||
- CGO_ENABLED=0 | ||
|
||
archives: | ||
- | ||
replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
- name_template: >- | ||
{{ .ProjectName }}_{{ .Version }}_ | ||
{{- title .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
{{- if .Arm }}v{{ .Arm }}{{ end -}} | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '^docs:' | ||
- '^test:' | ||
|
||
- '^docs:' | ||
- '^test:' | ||
|
||
release: | ||
github: | ||
owner: codefresh-io | ||
name: stevedore | ||
name: stevedore |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.6.1 | ||
1.6.2 |
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,37 @@ | ||
version: '1.0' | ||
|
||
steps: | ||
BuildingDockerImage: | ||
title: Building Docker Image | ||
type: build | ||
image_name: codefresh/stevedore | ||
working_directory: ./ | ||
dockerfile: Dockerfile | ||
tag: '${{CF_BRANCH_TAG_NORMALIZED}}' | ||
PushingToDockerRegistry: | ||
title: Pushing to Docker Registry | ||
type: push | ||
candidate: '${{BuildingDockerImage}}' | ||
tag: '${{CF_BRANCH_TAG_NORMALIZED}}' | ||
registry: dockerhub | ||
main_clone: | ||
title: Cloning repository... | ||
type: git-clone | ||
repo: '${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}' | ||
revision: '${{CF_REVISION}}' | ||
|
||
create_tag: | ||
title: Push tag to git | ||
image: codefresh/cli | ||
commands: | ||
- export VERSION=$(cat VERSION) | ||
- export OLD_ORIGIN=$(git remote get-url origin) | ||
- git remote rm origin | ||
- git remote add origin https://github:${{GITHUB_TOKEN}}@github.com/codefresh-io/stevedore.git | ||
- git tag v$VERSION | ||
- git push --tags | ||
- git remote rm origin | ||
- git remote add origin $OLD_ORIGIN | ||
when: | ||
branch: | ||
only: | ||
- master | ||
|
||
release: | ||
image: goreleaser/goreleaser:v2.4.7 | ||
working_directory: /go/src/github.com/codefresh-io/stevedore | ||
volumes: | ||
- ./stevedore:/go/src/github.com/codefresh-io/stevedore | ||
commands: | ||
- goreleaser release -f .goreleaser.yml --clean | ||
when: | ||
branch: | ||
only: | ||
- master |
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
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