Commit b6baf6ce authored by Hilal Ozdemir's avatar Hilal Ozdemir

alpine upgrade and go update

parent 9a681938
......@@ -96,7 +96,7 @@ publish:oci-image-layout:
script:
- echo http://dl-cdn.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories
- apk update
- apk add go=1.11.5-r0
- apk add go=1.12.5-r0
- apk add musl-dev
- go get github.com/coolljt0725/docker2oci
- docker save $CI_REGISTRY_IMAGE:ci-${CI_PIPELINE_ID} | $HOME/go/bin/docker2oci image-layout-${CI_COMMIT_TAG}
......@@ -184,7 +184,7 @@ start_test_services:
# build and copy tar-split
- echo http://dl-cdn.alpinelinux.org/alpine/edge/community/ >> /etc/apk/repositories
- apk update
- apk add go=1.11.5-r0
- apk add go=1.12.5-r0
- apk add musl-dev
- go get -d github.com/vbatts/tar-split/cmd/tar-split
- go build -o $HOME/tar-split -a -ldflags '-extldflags "-static"' $HOME/go/src/github.com/vbatts/tar-split/cmd/tar-split
......
FROM golang:1.11.6-stretch AS tar-split-builder
FROM golang:1.12.5-stretch AS tar-split-builder
RUN go get -d github.com/vbatts/tar-split/cmd/tar-split
RUN go build -o /tar-split -a -ldflags '-extldflags "-static"' /go/src/github.com/vbatts/tar-split/cmd/tar-split
......
FROM golang:1.11.5-alpine3.9
FROM golang:1.12.5-alpine3.9
LABEL maintainer="info@beiran.io"
RUN apk add git && go get -d github.com/vbatts/tar-split/cmd/tar-split && \
CGO_ENABLED=0 go build -o /tar-split /go/src/github.com/vbatts/tar-split/cmd/tar-split
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment