-
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.
* remove mage, add makefile * remove depfile
- Loading branch information
Showing
9 changed files
with
95 additions
and
1,107 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 |
---|---|---|
|
@@ -13,7 +13,6 @@ on: | |
|
||
env: | ||
VAULT_ADDR: https://vault.eng.aserto.com/ | ||
GO_VERSION: "1.17" | ||
|
||
jobs: | ||
test: | ||
|
@@ -59,55 +58,27 @@ jobs: | |
url: ${{ env.VAULT_ADDR }} | ||
token: ${{ secrets.VAULT_TOKEN }} | ||
secrets: | | ||
kv/data/github "SSH_PRIVATE_KEY" | SSH_PRIVATE_KEY; | ||
kv/data/rubygems "RUBYGEMS_API_KEY" | GEM_HOST_API_KEY; | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
|
||
- name: Setup caching | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
~/.cache/go-build | ||
~/go/pkg/mod | ||
.ext | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum', 'Depfile') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
|
||
- name: Install dependencies | ||
run: | | ||
mkdir -p $HOME/.ssh | ||
umask 0077 && echo -e "${SSH_PRIVATE_KEY}" > $HOME/.ssh/id_rsa | ||
ssh-keyscan github.com >> $HOME/.ssh/known_hosts | ||
git config --global url."[email protected]:".insteadOf https://github.com/ | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Aserto Bot" | ||
eval `ssh-agent` | ||
ssh-add $HOME/.ssh/id_rsa | ||
go run mage.go deps | ||
run: make deps | ||
|
||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.1 | ||
ruby-version: 3.3 | ||
|
||
- name: Build and push the gem | ||
run: go run mage.go release | ||
run: make release | ||
|
||
- name: Bump to the next version | ||
run: go run mage.go bump patch | ||
run: make bump-version | ||
|
||
- name: Commit changes | ||
uses: EndBug/add-and-commit@v9 | ||
|
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 |
---|---|---|
|
@@ -242,8 +242,6 @@ end | |
``` | ||
## Development | ||
Prerequisites: | ||
|
||
- go >= 1.17 to run mage | ||
- Ruby >= 3.0 to run the code | ||
|
||
|
||
|
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
Oops, something went wrong.