forked from oras-project/oras
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changes for 0.2.0 release (oras-project#18)
* prepare for 0.2.0 release * fix example * use custom mediatype in example
- Loading branch information
Showing
4 changed files
with
77 additions
and
25 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,37 @@ | ||
# Note: must set env var GITHUB_TOKEN for goreleaser | ||
version: '1.0' | ||
stages: | ||
- test | ||
- build | ||
- release | ||
steps: | ||
UnitTest: | ||
title: Run unit tests | ||
stage: test | ||
image: golang:1.11 | ||
working_directory: &workdir /go/src/github.com/${{CF_REPO_OWNER}} | ||
commands: | ||
- &link ln -s /codefresh/volume/${{CF_REPO_NAME}} ${{CF_REPO_NAME}} && cd ${{CF_REPO_NAME}} | ||
- echo make test | ||
BuildDockerImage: | ||
title: Build Docker image | ||
stage: build | ||
type: build | ||
image_name: ${{CF_REPO_OWNER}}/${{CF_REPO_NAME}} | ||
UploadReleaseArtifacts: | ||
title: Upload release artifacts | ||
stage: release | ||
image: goreleaser/goreleaser:v0.95.0 | ||
working_directory: *workdir | ||
commands: | ||
- *link | ||
- git checkout tags/${{CF_BRANCH_TAG_NORMALIZED}} | ||
- goreleaser --rm-dist | ||
PushDockerImageTagged: | ||
title: Push Docker image (tag) | ||
stage: release | ||
type: push | ||
candidate: ${{BuildDockerImage}} | ||
image_name: ocistorage/${{CF_REPO_NAME}} | ||
tag: ${{CF_BRANCH_TAG_NORMALIZED}} | ||
registry: dockerhub |
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