Skip to content

Commit a604a86

Browse files
committed
Merge commit '5124638a7780c44af557e889db3990e63f860692' into v2.0.0-rc
2 parents d55537f + 5124638 commit a604a86

175 files changed

Lines changed: 13796 additions & 28898 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/v2.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
# events but only for the master branch
5+
on:
6+
push:
7+
branches:
8+
- v2
9+
10+
11+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
12+
jobs:
13+
# This workflow contains a single job called "build"
14+
ci:
15+
# The type of runner that the job will run on
16+
runs-on: ubuntu-20.04
17+
18+
# Steps represent a sequence of tasks that will be executed as part of the job
19+
steps:
20+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+
- uses: actions/checkout@v2
22+
23+
- name: Run a test
24+
if: "!contains(github.event.head_commit.message, '[doc]')"
25+
run: make test
26+
27+
- name: Publish the coverage
28+
if: "!contains(github.event.head_commit.message, '[doc]')"
29+
run: bash <(curl -s https://codecov.io/bash)
30+
31+
- name: Set latest tag
32+
if: "!contains(github.event.head_commit.message, '[doc]')"
33+
run: echo "RELEASE_VERSION=`echo ${GITHUB_REF#refs/*/} | sed -e 's/v2/v2next/'`" >> $GITHUB_ENV
34+
35+
- name: Publish docker images
36+
if: "!contains(github.event.head_commit.message, '[doc]')"
37+
run: echo ${{ secrets.DOCKERHUB_TOKEN }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin && make push LATEST_TAG=${{ env.RELEASE_VERSION }}

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ test: env
9898
-e TEST_ROOT_CA_KEY=/certs/root_ca.key \
9999
-e ACME_DB_DIR=/home/certificate-authority \
100100
cloud-test \
101-
go test -mod=mod -race -p 1 -v ./... -covermode=atomic -coverprofile=/home/coverage.txt
101+
go test -race -p 1 -v ./... -covermode=atomic -coverprofile=/home/coverage.txt
102102

103103
build: cloud-build $(SUBDIRS)
104104

@@ -107,9 +107,9 @@ clean:
107107
docker rm -f nats || true
108108
docker rm -f nats-cloud-connector || true
109109
docker rm -f devsim || true
110-
rm -rf ./.tmp/certs || true
111-
rm -rf ./.tmp/mongo || true
112-
rm -rf ./.tmp/home || true
110+
sudo rm -rf ./.tmp/certs || true
111+
sudo rm -rf ./.tmp/mongo || true
112+
sudo rm -rf ./.tmp/home || true
113113

114114
proto/generate: $(SUBDIRS)
115115
push: cloud-build $(SUBDIRS)

authorization/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ push: build-servicecontainer
2424
docker push plgd/$(SERVICE_NAME):$(LATEST_TAG)
2525

2626
proto/generate:
27-
protoc -I=. -I=${GOPATH}/src -I=./pb --gogofaster_out=${GOPATH}/src $(shell pwd)/pb/auth.proto
28-
protoc -I=. -I=${GOPATH}/src -I=./pb --go_out=plugins=grpc:${GOPATH}/src $(shell pwd)/pb/service.proto
27+
protoc -I=. -I=${GOPATH}/src -I=./pb --go_out=${GOPATH}/src $(shell pwd)/pb/auth.proto
28+
protoc -I=. -I=${GOPATH}/src -I=./pb --go-grpc_out=${GOPATH}/src $(shell pwd)/pb/service.proto
2929

3030
.PHONY: build-servicecontainer build push clean proto/generate

0 commit comments

Comments
 (0)