-
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.
- Adiçao de pipeline para deploy. - Implementaçao de build makefile
- Loading branch information
Adriano M. La Selva
committed
Jan 31, 2022
1 parent
91717d3
commit 4a3a50b
Showing
8 changed files
with
161 additions
and
34 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,56 @@ | ||
name: build-draethos | ||
on: | ||
push: | ||
branches: [ master ] | ||
tags: [ '*' ] | ||
pull_request: | ||
branches: [ master ] | ||
tags: [ '*' ] | ||
jobs: | ||
build-application: | ||
name: Run | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
go-version: [1.13] | ||
os: [ubuntu-latest, macos-latest] | ||
steps: | ||
- name: install-golang | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go-version }} | ||
- name: checkout-code | ||
uses: actions/checkout@v2 | ||
- name: build-application | ||
run: go build -o ./build/${{ matrix.os }}/draethos -v ./init | ||
- name: upload-artifact | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: draethos | ||
path: build/${{ matrix.os }}/draethos | ||
retention-days: 1 | ||
upload-binaries-to-release: | ||
name: upload-binaries-to-release | ||
runs-on: ubuntu-20.04 | ||
needs: build-application | ||
steps: | ||
- name: download-binaries-to-release | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: draethos | ||
path: build/ | ||
- name: compact-files | ||
uses: montudor/[email protected] | ||
if: ${{ startsWith(github.ref, 'refs/tags') }} | ||
with: | ||
args: "zip -r ./draethos.zip . -i ./build/*" | ||
- name: upload-binaries-to-release | ||
if: ${{ startsWith(github.ref, 'refs/tags') }} | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.PERSONAL_GITHUB_TOKEN }} | ||
file: draethos.zip | ||
tag: ${{ github.ref }} | ||
asset_name: draethos.zip | ||
overwrite: true | ||
file_glob: true |
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 |
---|---|---|
|
@@ -2,7 +2,8 @@ | |
.DS_Store | ||
vendor/ | ||
zk-multiple-kafka-single | ||
bifrost | ||
draethos | ||
build/ | ||
to-do.txt | ||
go.sum | ||
*.dist | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package color | ||
|
||
const ( | ||
Reset = "\033[0m" | ||
Red = "\033[31m" | ||
Green = "\033[32m" | ||
Yellow = "\033[33m" | ||
Blue = "\033[34m" | ||
Purple = "\033[35m" | ||
Cyan = "\033[36m" | ||
Gray = "\033[37m" | ||
White = "\033[97m" | ||
) |