Skip to content

Commit df42b83

Browse files
authored
Remove canary support (#805)
Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent 82614d3 commit df42b83

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

Dockerfile.dbg

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ RUN set -x \
77
&& apt-get update \
88
&& apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl bzip2
99

10-
RUN set -x \
11-
&& curl -Lo restic.bz2 https://github.com/restic/restic/releases/download/v{RESTIC_VER}/restic_{RESTIC_VER}_{ARG_OS}_{ARG_ARCH}.bz2 \
12-
&& bzip2 -d restic.bz2 \
13-
&& chmod 755 restic \
14-
&& curl -Lo restic_{NEW_RESTIC_VER}.bz2 https://github.com/restic/restic/releases/download/v{NEW_RESTIC_VER}/restic_{NEW_RESTIC_VER}_{ARG_OS}_{ARG_ARCH}.bz2 \
15-
&& bzip2 -d restic_{NEW_RESTIC_VER}.bz2 \
10+
RUN set -x \
11+
&& curl -fsSL -o restic.bz2 https://github.com/restic/restic/releases/download/v{RESTIC_VER}/restic_{RESTIC_VER}_{ARG_OS}_{ARG_ARCH}.bz2 \
12+
&& bzip2 -d restic.bz2 \
13+
&& chmod 755 restic \
14+
&& curl -fsSL -o restic_{NEW_RESTIC_VER}.bz2 https://github.com/restic/restic/releases/download/v{NEW_RESTIC_VER}/restic_{NEW_RESTIC_VER}_{ARG_OS}_{ARG_ARCH}.bz2 \
15+
&& bzip2 -d restic_{NEW_RESTIC_VER}.bz2 \
1616
&& chmod 755 restic_{NEW_RESTIC_VER}
1717

1818

Dockerfile.in

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ RUN set -x \
77
&& apt-get update \
88
&& apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl bzip2
99

10-
RUN set -x \
11-
&& curl -Lo restic.bz2 https://github.com/restic/restic/releases/download/v{RESTIC_VER}/restic_{RESTIC_VER}_{ARG_OS}_{ARG_ARCH}.bz2 \
12-
&& bzip2 -d restic.bz2 \
13-
&& chmod 755 restic \
14-
&& curl -Lo restic_{NEW_RESTIC_VER}.bz2 https://github.com/restic/restic/releases/download/v{NEW_RESTIC_VER}/restic_{NEW_RESTIC_VER}_{ARG_OS}_{ARG_ARCH}.bz2 \
15-
&& bzip2 -d restic_{NEW_RESTIC_VER}.bz2 \
10+
RUN set -x \
11+
&& curl -fsSL -o restic.bz2 https://github.com/restic/restic/releases/download/v{RESTIC_VER}/restic_{RESTIC_VER}_{ARG_OS}_{ARG_ARCH}.bz2 \
12+
&& bzip2 -d restic.bz2 \
13+
&& chmod 755 restic \
14+
&& curl -fsSL -o restic_{NEW_RESTIC_VER}.bz2 https://github.com/restic/restic/releases/download/v{NEW_RESTIC_VER}/restic_{NEW_RESTIC_VER}_{ARG_OS}_{ARG_ARCH}.bz2 \
15+
&& bzip2 -d restic_{NEW_RESTIC_VER}.bz2 \
1616
&& chmod 755 restic_{NEW_RESTIC_VER}
1717

1818

19+
1920
FROM {ARG_FROM}
2021

2122
COPY --from=0 /restic /bin/restic

Makefile

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ VERSION_DBG := $(VERSION)-dbg
5353
TAG := $(VERSION)_$(OS)_$(ARCH)
5454
TAG_PROD := $(TAG)
5555
TAG_DBG := $(VERSION)-dbg_$(OS)_$(ARCH)
56-
CANARY_TAG_PROD := canary_$(OS)_$(ARCH)
57-
CANARY_TAG_DBG := canary-dbg_$(OS)_$(ARCH)
5856

5957
GO_VERSION ?= 1.12.5
6058
BUILD_IMAGE ?= appscode/golang-dev:$(GO_VERSION)-stretch
@@ -192,19 +190,12 @@ bin/.container-$(DOTFILE_IMAGE)-%: bin/$(OS)_$(ARCH)/$(BIN) $(DOCKERFILE_%)
192190
$(DOCKERFILE_$*) > bin/.dockerfile-$*-$(OS)_$(ARCH)
193191
@docker build -t $(IMAGE):$(TAG_$*) -f bin/.dockerfile-$*-$(OS)_$(ARCH) .
194192
@docker images -q $(IMAGE):$(TAG_$*) > $@
195-
@if [ $(version_strategy) = commit_hash ] && [ $(git_branch) = master ]; then \
196-
docker tag $(IMAGE):$(TAG_$*) $(IMAGE):$(CANARY_TAG_$*); \
197-
fi
198193
@echo
199194

200195
push: bin/.push-$(DOTFILE_IMAGE)-PROD bin/.push-$(DOTFILE_IMAGE)-DBG
201196
bin/.push-$(DOTFILE_IMAGE)-%: bin/.container-$(DOTFILE_IMAGE)-%
202197
@docker push $(IMAGE):$(TAG_$*)
203198
@echo "pushed: $(IMAGE):$(TAG_$*)"
204-
@if [ $(version_strategy) = commit_hash ] && [ $(git_branch) = master ]; then \
205-
docker push $(IMAGE):$(CANARY_TAG_$*); \
206-
echo "pushed: $(IMAGE):$(TAG_$*)"; \
207-
fi
208199
@echo
209200

210201
.PHONY: docker-manifest

0 commit comments

Comments
 (0)