Skip to content

Commit bb130ce

Browse files
committed
cmd/gitmirror: new config after deploying version "v4"
Probably not doing this right yet, but it's done. Change-Id: Ic38b02c6cb0d42eb7e661c67f860254ff9f2fc76 Reviewed-on: https://go-review.googlesource.com/37296 Reviewed-by: Brad Fitzpatrick <[email protected]>
1 parent 7441680 commit bb130ce

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

cmd/gitmirror/Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
# Use of this source code is governed by a BSD-style
33
# license that can be found in the LICENSE file.
44

5+
VERSION=v4
6+
57
docker-prod: Dockerfile
6-
docker build -f Dockerfile --tag=gcr.io/symbolic-datum-552/gitmirror:latest ../..
8+
docker build -f Dockerfile --tag=gcr.io/symbolic-datum-552/gitmirror:$(VERSION) ../..
79
docker-dev: Dockerfile
810
docker build -f Dockerfile --tag=gcr.io/go-dashboard-dev/gitmirror:latest ../..
911

1012
push-prod: docker-prod
11-
gcloud docker push gcr.io/symbolic-datum-552/gitmirror:latest
13+
gcloud docker push gcr.io/symbolic-datum-552/gitmirror:$(VERSION)
1214
push-dev: docker-dev
1315
gcloud docker push gcr.io/go-dashboard-dev/gitmirror:latest

cmd/gitmirror/rc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
kind: ReplicationController
33
metadata:
4-
name: gitmirror
4+
name: gitmirror-v4
55
spec:
66
replicas: 2
77
selector:
@@ -18,7 +18,7 @@ spec:
1818
medium: Memory
1919
containers:
2020
- name: gitmirror
21-
image: gcr.io/symbolic-datum-552/gitmirror:latest
21+
image: gcr.io/symbolic-datum-552/gitmirror:v4
2222
command: ["/go/bin/gitmirror", "-http=:8585", "-mirror=true", "-report=true", "-network=true", "-cachedir=/cache/gitmirror"]
2323
volumeMounts:
2424
- mountPath: /cache

0 commit comments

Comments
 (0)