Skip to content

Commit

Permalink
fix(ci): Tag images with pre-release version numbers.
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Stuart <[email protected]>
  • Loading branch information
jessestuart committed Aug 18, 2019
1 parent 6ec72a7 commit 6a88d4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions .circleci/load_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ echo 'export GOPATH=/root/go' >>$BASH_ENV
echo 'export GOROOT=/usr/local/go' >>$BASH_ENV
echo 'export IMAGE=velero' >>$BASH_ENV
echo 'export REGISTRY=jessestuart' >>$BASH_ENV
echo 'export QEMU_VERSION=v3.1.0-2' >>$BASH_ENV
echo 'export VERSION=$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r ".tag_name")' >>$BASH_ENV

# echo 'export VERSION=$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases | jq -r "sort_by(.tag_name)[-1].tag_name")' >>$BASH_ENV
echo 'export QEMU_VERSION=v4.0.0' >>$BASH_ENV
# echo 'export VERSION=$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases/latest | jq -r ".tag_name")' >>$BASH_ENV
echo 'export VERSION=$(curl -s https://api.github.com/repos/${GITHUB_REPO}/releases | jq -r "sort_by(.tag_name)[-1].tag_name")' >>$BASH_ENV

source $BASH_ENV
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Build stage.
# ==================
ARG target
FROM golang:1.11 as builder
FROM golang:1.12 as builder

ARG goarch
ENV GOARCH $goarch
Expand All @@ -27,7 +27,7 @@ COPY qemu-* /usr/bin/
COPY --from=builder /velero /velero

ARG goarch
ADD https://github.com/restic/restic/releases/download/v0.9.4/restic_0.9.4_linux_${goarch}.bz2 /restic.bz2
ADD https://github.com/restic/restic/releases/download/v0.9.5/restic_0.9.5_linux_${goarch}.bz2 /restic.bz2
RUN apk add --no-cache --update ca-certificates && \
bunzip2 restic.bz2 && \
chmod +x /restic && \
Expand Down

0 comments on commit 6a88d4c

Please sign in to comment.