-
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 #133 from dolittle/get-config-yaml
Add Configuration Management
- Loading branch information
Showing
2 changed files
with
88 additions
and
67 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 |
---|---|---|
|
@@ -100,33 +100,33 @@ jobs: | |
working-directory: ./Generation/JavaScript.Web | ||
run: yarn build | ||
|
||
golang-build: | ||
name: Go Build | ||
runs-on: ubuntu-latest | ||
needs: context | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.16.2" | ||
- uses: arduino/setup-protoc@v1 | ||
with: | ||
version: "3.18.1" | ||
- run: go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc | ||
- name: Update VersionInfo | ||
uses: dolittle/update-version-info-action@v1 | ||
with: | ||
version: ${{ needs.context.outputs.versioninfo-version }} | ||
files-to-update: | | ||
Generation/Go/template/VersionInfo.go | ||
- name: Generate code | ||
working-directory: ./Generation/Go | ||
run: ./generate.sh ${{ needs.context.outputs.version }} | ||
# golang-build: | ||
# name: Go Build | ||
# runs-on: ubuntu-latest | ||
# needs: context | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions/setup-go@v2 | ||
# with: | ||
# go-version: "1.16.2" | ||
# - uses: arduino/setup-protoc@v1 | ||
# with: | ||
# version: "3.18.1" | ||
# - run: go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc | ||
# - name: Update VersionInfo | ||
# uses: dolittle/update-version-info-action@v1 | ||
# with: | ||
# version: ${{ needs.context.outputs.versioninfo-version }} | ||
# files-to-update: | | ||
# Generation/Go/template/VersionInfo.go | ||
# - name: Generate code | ||
# working-directory: ./Generation/Go | ||
# run: ./generate.sh ${{ needs.context.outputs.version }} | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
needs: [context, dot-net-build, java-script-build, java-script-web-build, golang-build] | ||
needs: [context, dot-net-build, java-script-build, java-script-web-build] | ||
if: ${{ needs.context.outputs.should-publish == 'true' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -247,47 +247,47 @@ jobs: | |
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
|
||
golang-release: | ||
name: Go Release | ||
runs-on: ubuntu-latest | ||
needs: [context, release] | ||
if: ${{ needs.context.outputs.should-publish == 'true' }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.16.2" | ||
- uses: arduino/setup-protoc@v1 | ||
with: | ||
version: "3.18.1" | ||
- run: go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc | ||
- name: Update VersionInfo | ||
uses: dolittle/update-version-info-action@v1 | ||
with: | ||
version: ${{ needs.context.outputs.versioninfo-version }} | ||
files-to-update: | | ||
Generation/Go/template/VersionInfo.go | ||
- name: Generate code | ||
working-directory: ./Generation/Go | ||
run: ./generate.sh ${{ needs.context.outputs.version }} | ||
- uses: actions/checkout@v2 | ||
with: | ||
repository: dolittle/Go.Contracts | ||
token: ${{ secrets.BUILD_PAT }} | ||
path: ./Generation/Go/output | ||
- name: Cleanout old released code | ||
working-directory: ./Generation/Go/output | ||
run: rm -r * && git checkout -- README.md LICENSE | ||
- name: Copy new generated code | ||
working-directory: ./Generation/Go/ | ||
run: cp -r generated/* output | ||
- name: Commit new generated code and tag as release | ||
working-directory: ./Generation/Go/output | ||
run: | | ||
git config user.name "Contracts Release GitHub Actions" | ||
git config user.email "[email protected]" | ||
git add . | ||
git commit --allow-empty -m "Generated code for ${{ needs.context.outputs.version }}" | ||
git tag "v${{ needs.context.outputs.version }}" | ||
git push | ||
git push --tags | ||
# golang-release: | ||
# name: Go Release | ||
# runs-on: ubuntu-latest | ||
# needs: [context, release] | ||
# if: ${{ needs.context.outputs.should-publish == 'true' }} | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions/setup-go@v2 | ||
# with: | ||
# go-version: "1.16.2" | ||
# - uses: arduino/setup-protoc@v1 | ||
# with: | ||
# version: "3.18.1" | ||
# - run: go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc | ||
# - name: Update VersionInfo | ||
# uses: dolittle/update-version-info-action@v1 | ||
# with: | ||
# version: ${{ needs.context.outputs.versioninfo-version }} | ||
# files-to-update: | | ||
# Generation/Go/template/VersionInfo.go | ||
# - name: Generate code | ||
# working-directory: ./Generation/Go | ||
# run: ./generate.sh ${{ needs.context.outputs.version }} | ||
# - uses: actions/checkout@v2 | ||
# with: | ||
# repository: dolittle/Go.Contracts | ||
# token: ${{ secrets.BUILD_PAT }} | ||
# path: ./Generation/Go/output | ||
# - name: Cleanout old released code | ||
# working-directory: ./Generation/Go/output | ||
# run: rm -r * && git checkout -- README.md LICENSE | ||
# - name: Copy new generated code | ||
# working-directory: ./Generation/Go/ | ||
# run: cp -r generated/* output | ||
# - name: Commit new generated code and tag as release | ||
# working-directory: ./Generation/Go/output | ||
# run: | | ||
# git config user.name "Contracts Release GitHub Actions" | ||
# git config user.email "[email protected]" | ||
# git add . | ||
# git commit --allow-empty -m "Generated code for ${{ needs.context.outputs.version }}" | ||
# git tag "v${{ needs.context.outputs.version }}" | ||
# git push | ||
# git push --tags |
21 changes: 21 additions & 0 deletions
21
Source/Runtime/Management/Configuration/Configuration.proto
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 @@ | ||
// Copyright (c) Dolittle. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
syntax = "proto3"; | ||
|
||
package dolittle.runtime.configuration.management; | ||
|
||
option csharp_namespace = "Dolittle.Runtime.Configuration.Management.Contracts"; | ||
option go_package = "go.dolittle.io/contracts/runtime/configuration/management"; | ||
|
||
|
||
message GetConfigurationYamlRequest { | ||
} | ||
|
||
message GetConfigurationYamlResponse { | ||
string value = 1; | ||
} | ||
|
||
service Configuration { | ||
rpc GetConfigurationYaml(GetConfigurationYamlRequest) returns(GetConfigurationYamlResponse); | ||
} |