File tree Expand file tree Collapse file tree 3 files changed +13
-21
lines changed Expand file tree Collapse file tree 3 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ RUN set -x \
7
7
&& apt-get update \
8
8
&& apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl bzip2
9
9
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 \
16
16
&& chmod 755 restic_{NEW_RESTIC_VER}
17
17
18
18
Original file line number Diff line number Diff line change @@ -7,15 +7,16 @@ RUN set -x \
7
7
&& apt-get update \
8
8
&& apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl bzip2
9
9
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 \
16
16
&& chmod 755 restic_{NEW_RESTIC_VER}
17
17
18
18
19
+
19
20
FROM {ARG_FROM}
20
21
21
22
COPY --from=0 /restic /bin/restic
Original file line number Diff line number Diff line change @@ -53,8 +53,6 @@ VERSION_DBG := $(VERSION)-dbg
53
53
TAG := $(VERSION ) _$(OS ) _$(ARCH )
54
54
TAG_PROD := $(TAG )
55
55
TAG_DBG := $(VERSION ) -dbg_$(OS ) _$(ARCH )
56
- CANARY_TAG_PROD := canary_$(OS ) _$(ARCH )
57
- CANARY_TAG_DBG := canary-dbg_$(OS ) _$(ARCH )
58
56
59
57
GO_VERSION ?= 1.12.5
60
58
BUILD_IMAGE ?= appscode/golang-dev:$(GO_VERSION ) -stretch
@@ -192,19 +190,12 @@ bin/.container-$(DOTFILE_IMAGE)-%: bin/$(OS)_$(ARCH)/$(BIN) $(DOCKERFILE_%)
192
190
$(DOCKERFILE_$* ) > bin/.dockerfile-$* -$(OS ) _$(ARCH )
193
191
@docker build -t $(IMAGE ) :$(TAG_$* ) -f bin/.dockerfile-$* -$(OS ) _$(ARCH ) .
194
192
@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
198
193
@echo
199
194
200
195
push : bin/.push-$(DOTFILE_IMAGE ) -PROD bin/.push-$(DOTFILE_IMAGE ) -DBG
201
196
bin/.push-$(DOTFILE_IMAGE ) -% : bin/.container-$(DOTFILE_IMAGE ) -%
202
197
@docker push $(IMAGE ) :$(TAG_$* )
203
198
@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
208
199
@echo
209
200
210
201
.PHONY : docker-manifest
You can’t perform that action at this time.
0 commit comments