-
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.
Merge pull request #1 from go-vela/initial-ghr-code
Initial github release code commit
- Loading branch information
Showing
44 changed files
with
4,330 additions
and
2 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,2 @@ | ||
# These owners will be the default owners for everything in the repo. | ||
* @go-vela/admins |
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,74 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to make participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, gender identity and expression, level of experience, | ||
nationality, personal appearance, race, religion, or sexual identity and | ||
orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
- Using welcoming and inclusive language | ||
- Being respectful of differing viewpoints and experiences | ||
- Gracefully accepting constructive criticism | ||
- Focusing on what is best for the community | ||
- Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
- The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
- Trolling, insulting/derogatory comments, and personal or political attacks | ||
- Public or private harassment | ||
- Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
- Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at | ||
[opensource@target.com](mailto:opensource@target.com). All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
[homepage]: https://www.contributor-covenant.org |
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,90 @@ | ||
# Contributing | ||
|
||
## Getting Started | ||
|
||
We'd love to accept your contributions to this project! If you are a first time contributor, please review our [Contributing Guidelines](https://go-vela.github.io/docs/community/contributing_guidelines/) before proceeding. | ||
|
||
### Prerequisites | ||
|
||
* [Review the commit guide we follow](https://chris.beams.io/posts/git-commit/#seven-rules) - ensure your commits follow our standards | ||
* Review our [style guide](https://go-vela.github.io/docs/community/contributing_guidelines/#style-guide) to ensure your code is clean and consistent. | ||
* [Docker](https://docs.docker.com/install/) - building block for local development | ||
* [Docker Compose](https://docs.docker.com/compose/install/) - start up local development | ||
* [Make](https://www.gnu.org/software/make/) - start up local development | ||
|
||
### Setup | ||
|
||
- [Fork](/fork) this repository | ||
|
||
- Clone this repository to your workstation: | ||
|
||
```bash | ||
# Clone the project | ||
git clone git@github.com:go-vela/vela-email.git $HOME/go-vela/vela-github-release | ||
``` | ||
|
||
- Navigate to the repository code: | ||
|
||
```bash | ||
# Change into the project directory | ||
cd $HOME/go-vela/vela-github-release | ||
``` | ||
|
||
- Point the original code at your fork: | ||
|
||
```bash | ||
# Add a remote branch pointing to your fork | ||
git remote add fork https://github.com/your_fork/vela-github-release | ||
``` | ||
|
||
### Development | ||
|
||
**Please review the [local development documentation](../DOCS.md) for more information.** | ||
|
||
- Navigate to the repository code: | ||
|
||
```bash | ||
# change into the cloned project directory | ||
cd $HOME/go-vela/vela-github-release | ||
``` | ||
|
||
- Write your code and tests to implement the changes you desire. | ||
|
||
- Build the repository code: | ||
|
||
```bash | ||
# execute the `build` target with `make` | ||
make build | ||
``` | ||
|
||
- Run the repository code (ensures your changes perform as you desire): | ||
|
||
```bash | ||
# execute the `run` target with `make` | ||
make run | ||
``` | ||
|
||
- Test the repository code (ensures your changes don't break existing functionality): | ||
|
||
```bash | ||
# execute the `test` target with `make` | ||
make test | ||
``` | ||
|
||
- Clean the repository code (ensures your code meets the project standards): | ||
|
||
```bash | ||
# execute the `clean` target with `make` | ||
make clean | ||
``` | ||
|
||
- Push to your fork: | ||
|
||
```bash | ||
# push your code up to your fork | ||
git push fork main | ||
``` | ||
|
||
* Make sure to follow our [PR process](https://go-vela.github.io/docs/community/contributing_guidelines/#development-workflow) when opening a pull request | ||
|
||
Thank you for your contribution! |
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,34 @@ | ||
# vela-github-release | ||
|
||
[](../LICENSE) | ||
[](https://godoc.org/github.com/go-vela/vela-github-release) | ||
[](https://goreportcard.com/report/go-vela/vela-github-release) | ||
[](https://codecov.io/gh/go-vela/vela-github-release) | ||
|
||
Vela plugin designed to manage GitHub releases [GitHub CLI](https://cli.github.com/manual/) in a Vela pipeline. | ||
|
||
Internally, the plugin is a wrapper around the [Github Release CLI](https://cli.github.com/manual/gh_release). | ||
|
||
## Documentation | ||
|
||
For installation and usage, please [visit our docs](https://go-vela.github.io/docs). | ||
|
||
## Contributing | ||
|
||
We are always welcome to new pull requests! | ||
|
||
Please see our [contributing](CONTRIBUTING.md) docs for further instructions. | ||
|
||
## Support | ||
|
||
We are always here to help! | ||
|
||
Please see our [support](SUPPORT.md) documentation for further instructions. | ||
|
||
## Copyright and License | ||
|
||
``` | ||
Copyright (c) 2022 Target Brands, Inc. | ||
``` | ||
|
||
[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0) |
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,15 @@ | ||
# Support | ||
|
||
Welcome to Vela! To get help with a specific aspect of Vela, we've provided the below information. | ||
|
||
## Bugs or Feature Requests | ||
|
||
We use GitHub for tracking bugs and feature requests. | ||
|
||
Please see our [contributing](CONTRIBUTING.md) documentation for further instructions. | ||
|
||
## Questions | ||
|
||
We use Slack for supporting questions not already covered in the above documents. | ||
|
||
Please join the [#vela](https://gophers.slack.com/app_redirect?channel=CNRRKE8KY) channel. |
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,4 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": ["local>go-vela/renovate-config"] | ||
} |
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,21 @@ | ||
# name of the action | ||
name: build | ||
|
||
# trigger on pull_request or push events | ||
on: | ||
pull_request: | ||
push: | ||
|
||
# pipeline to execute | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: golang:1.17 | ||
steps: | ||
- name: clone | ||
uses: actions/checkout@v2 | ||
|
||
- name: build | ||
run: | | ||
make build |
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,67 @@ | ||
# For most projects, this workflow file will not need changing; you simply need | ||
# to commit it to your repository. | ||
# | ||
# You may wish to alter this file to override the set of languages analyzed, | ||
# or to provide custom queries or build logic. | ||
# | ||
# ******** NOTE ******** | ||
# We have attempted to detect the languages in your repository. Please check | ||
# the `language` matrix defined below to confirm you have the correct set of | ||
# supported CodeQL languages. | ||
# | ||
name: "CodeQL" | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
# The branches below must be a subset of the branches above | ||
branches: [ main ] | ||
schedule: | ||
- cron: '32 7 * * 6' | ||
|
||
jobs: | ||
analyze: | ||
name: Analyze | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
language: [ 'go' ] | ||
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] | ||
# Learn more: | ||
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
# Initializes the CodeQL tools for scanning. | ||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: ${{ matrix.language }} | ||
# If you wish to specify custom queries, you can do so here or in a config file. | ||
# By default, queries listed here will override any specified in a config file. | ||
# Prefix the list here with "+" to use these queries and those in the config file. | ||
# queries: ./path/to/local/query, your-org/your-repo/queries@main | ||
|
||
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java). | ||
# If this step fails, then you should remove it and run the build manually (see below) | ||
- name: Autobuild | ||
uses: github/codeql-action/autobuild@v1 | ||
|
||
# ℹ️ Command-line programs to run using the OS shell. | ||
# 📚 https://git.io/JvXDl | ||
|
||
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines | ||
# and modify them (or add more) to build your code if your project | ||
# uses a compiled language | ||
|
||
#- run: | | ||
# make bootstrap | ||
# make release | ||
|
||
- name: Perform CodeQL Analysis | ||
uses: github/codeql-action/analyze@v1 |
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,42 @@ | ||
# name of the action | ||
name: prerelease | ||
|
||
# trigger on push events with `v*` in tag | ||
on: | ||
push: | ||
tags: | ||
- "v*" | ||
|
||
# pipeline to execute | ||
jobs: | ||
prerelease: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: golang:1.17 | ||
steps: | ||
- name: clone | ||
uses: actions/checkout@v2 | ||
with: | ||
# ensures we fetch tag history for the repository | ||
fetch-depth: 0 | ||
|
||
- name: setup | ||
run: | | ||
# setup git tag in Actions environment | ||
echo "GITHUB_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
- name: build | ||
env: | ||
GOOS: linux | ||
CGO_ENABLED: "0" | ||
run: | | ||
make build-static-ci | ||
- name: publish | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: target/vela-github-release | ||
cache: true | ||
tag_names: true | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} |
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,35 @@ | ||
# name of the action | ||
name: publish | ||
|
||
# trigger on push events with branch main | ||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
# pipeline to execute | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: golang:1.17 | ||
steps: | ||
- name: clone | ||
uses: actions/checkout@v2 | ||
with: | ||
# ensures we fetch tag history for the repository | ||
fetch-depth: 0 | ||
|
||
- name: build | ||
env: | ||
GOOS: linux | ||
CGO_ENABLED: '0' | ||
run: | | ||
make build-static-ci | ||
- name: publish | ||
uses: elgohr/Publish-Docker-Github-Action@master | ||
with: | ||
name: target/vela-github-release | ||
cache: true | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} |
Oops, something went wrong.