Skip to content
This repository was archived by the owner on Jun 2, 2023. It is now read-only.

Commit 20988e1

Browse files
committed
move deployment to another repo
1 parent d761ef6 commit 20988e1

File tree

8 files changed

+26
-345
lines changed

8 files changed

+26
-345
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ deploy_lambda: build_lambda
6464
aws s3 cp ./sqsLambdaConsumer.zip s3://golangci-lambda-functions/
6565

6666
deploy_cloudformation:
67-
aws cloudformation deploy --template ./deployments/cloudformation.yml --region us-east-1 --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM --stack-name golangci
67+
aws cloudformation deploy --template ./deployments/aws/cloudformation.yml --region us-east-1 --capabilities CAPABILITY_IAM CAPABILITY_NAMED_IAM --stack-name golangci
6868

6969
worker_test_repo:
7070
# set env vars PR, REPO
@@ -80,4 +80,4 @@ mod_update:
8080
GO111MODULE=on go mod vendor
8181

8282
psql:
83-
docker-compose exec pg psql -U postgres -dapi_prod
83+
docker-compose exec pg psql -U postgres -dapi_prod

cmd/golangci-api/main.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,29 @@
11
package main
22

33
import (
4+
"flag"
5+
"fmt"
6+
"os"
7+
48
app "github.com/golangci/golangci-api/pkg/api"
59
)
610

11+
var (
12+
// Populated during a build
13+
version = ""
14+
commit = ""
15+
date = ""
16+
)
17+
718
func main() {
19+
printVersion := flag.Bool("version", false, "print version")
20+
flag.Parse()
21+
22+
if *printVersion {
23+
fmt.Printf("golangci-api has version %s built from %s on %s\n", version, commit, date)
24+
os.Exit(0)
25+
}
26+
827
app := app.NewApp()
928
app.RunForever()
1029
}

deployments/build_runner/Dockerfile

Lines changed: 0 additions & 45 deletions
This file was deleted.

deployments/cloudformation.yml

Lines changed: 0 additions & 223 deletions
This file was deleted.

deployments/containers_orchestrator/containers_orchestrator.service

Lines changed: 0 additions & 37 deletions
This file was deleted.

deployments/containers_orchestrator/install.sh

Lines changed: 0 additions & 21 deletions
This file was deleted.

deployments/containers_orchestrator/rsyslog.conf

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)