Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

Push binaries to Github registry #10

Merged
merged 1 commit into from
Dec 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ jobs:
secrets: |
kv/data/github "SSH_PRIVATE_KEY" | SSH_PRIVATE_KEY;
kv/data/github "READ_WRITE_TOKEN" | READ_WRITE_TOKEN;
kv/data/github "USERNAME" | DOCKER_USERNAME;
kv/data/github "DOCKER_PUSH_TOKEN" | DOCKER_PASSWORD;
kv/data/gcp "SERVICE_ACCOUNT_GITHUB_ACTIONS_RELEASE" | SERVICE_ACCOUNT_GITHUB_ACTIONS_RELEASE;
- name: Install Vault CLI
uses: innovationnorway/setup-vault@v1.0.3
Expand Down Expand Up @@ -113,6 +115,8 @@ jobs:
- name: Release
env:
GITHUB_TOKEN: ${{ steps.vault.outputs.READ_WRITE_TOKEN }}
DOKER_USERNAME: ${{ steps.vault.outputs.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ steps.vault.outputs.DOCKER_PASSWORD }}
GOOGLE_APPLICATION_CREDENTIALS: /tmp/gs.json
run: |
mkdir -p $HOME/.ssh
Expand All @@ -124,4 +128,4 @@ jobs:

echo "${SERVICE_ACCOUNT_GITHUB_ACTIONS_RELEASE}" > /tmp/gs.json

go run mage.go deps release
go run mage.go deps release publish
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
# vendor/
/dist
/bin
/cover.out
/cover.out
/.ext
13 changes: 13 additions & 0 deletions Depfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
---
bin:
oras:
url: "https://github.com/oras-project/oras/releases/download/v{{.Version}}/oras_{{.Version}}_{{.OS}}_{{.Arch}}.tar.gz"
version: "0.12.0"
sha:
linux-amd64: "660a4ecd87414d1f29610b2ed4630482f1f0d104431576d37e59752c27de37ed"
linux-arm64: "9e8b29529356c70f5ed88e47518d34491e3e0762615be276c8f54604fae65c00"
windows-amd64: "bdd9a3a7fa014d0f2676fed72bba90710cd80c1ae49e73a5bfcc944ee0ac4505"
darwin-amd64: "3637530cd3d01e2b3dc43fc4692edd36c71919726be9fdbb3b298ce0979bbabb"
darwin-arm64: "0cfb07da7c8d6ceef7a3850140c8d25bf64139b0cb3bf221fa4e7aeb0e0a1a73"
tgzPaths:
- "./oras"

go:
sver:
importPath: "github.com/aserto-dev/sver/cmd/sver"
Expand Down
7 changes: 4 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ go 1.16
require (
github.com/aserto-dev/go-grpc v0.0.10
github.com/aserto-dev/idp-plugin-sdk v0.0.2
github.com/aserto-dev/mage-loot v0.4.12
github.com/aserto-dev/mage-loot v0.4.16
github.com/aserto-dev/sver v1.3.9
github.com/hashicorp/go-multierror v1.0.0
github.com/magefile/mage v1.11.0
github.com/stretchr/testify v1.7.0
golang.org/x/sys v0.0.0-20210930141918-969570ce7c6c
google.golang.org/grpc v1.41.0
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881
google.golang.org/grpc v1.42.0
google.golang.org/protobuf v1.27.1
)
Loading