Compare commits
1 Commits
6449f8100e
...
6b06d620a2
Author | SHA1 | Date | |
---|---|---|---|
6b06d620a2 |
|
@ -4,7 +4,7 @@ name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: make
|
- name: make
|
||||||
image: docker:dind
|
image: debian:buster-slim
|
||||||
environment:
|
environment:
|
||||||
USERNAME:
|
USERNAME:
|
||||||
from_secret: docker_username
|
from_secret: docker_username
|
||||||
|
@ -12,11 +12,17 @@ steps:
|
||||||
from_secret: docker_password
|
from_secret: docker_password
|
||||||
REGISTRY:
|
REGISTRY:
|
||||||
from_secret: docker_registry
|
from_secret: docker_registry
|
||||||
|
DOCKERVERSION: "19.03.9"
|
||||||
volumes:
|
volumes:
|
||||||
- name: dockersock
|
- name: dockersock
|
||||||
path: /var/run
|
path: /var/run
|
||||||
commands:
|
commands:
|
||||||
|
- apt-get update && apt install -y --no-install-recommends curl make ca-certificates git
|
||||||
|
- curl -fsSLO https://download.docker.com/linux/static/stable/x86_64/docker-$${DOCKERVERSION}.tgz
|
||||||
|
- tar xzvf docker-$${DOCKERVERSION}.tgz --strip 1 -C /usr/local/bin docker/docker
|
||||||
|
- rm docker-$${DOCKERVERSION}.tgz
|
||||||
- sleep 5 # give docker enough time to start
|
- sleep 5 # give docker enough time to start
|
||||||
|
- echo login $REGISTRY
|
||||||
- docker login -u $USERNAME -p $PASSWORD $REGISTRY
|
- docker login -u $USERNAME -p $PASSWORD $REGISTRY
|
||||||
- make manifest-list
|
- make manifest-list
|
||||||
- name: notify
|
- name: notify
|
||||||
|
|
3
Makefile
3
Makefile
|
@ -51,7 +51,7 @@ BASEIMAGE ?= scratch # gcr.io/distroless/static
|
||||||
|
|
||||||
TAG := $(VERSION)__$(OS)_$(ARCH)
|
TAG := $(VERSION)__$(OS)_$(ARCH)
|
||||||
|
|
||||||
BUILD_IMAGE ?= golang:1.14-alpine
|
BUILD_IMAGE ?= golang:1.15.5-alpine
|
||||||
|
|
||||||
BIN_EXTENSION :=
|
BIN_EXTENSION :=
|
||||||
ifeq ($(OS), windows)
|
ifeq ($(OS), windows)
|
||||||
|
@ -137,7 +137,6 @@ go-build: $(BUILD_DIRS)
|
||||||
@mkdir -p "$$(pwd)/.go/bin/$(OS)_$(ARCH)"
|
@mkdir -p "$$(pwd)/.go/bin/$(OS)_$(ARCH)"
|
||||||
@chmod $(BINDIRMODE) "$$(pwd)/.go/bin/$(OS)_$(ARCH)"
|
@chmod $(BINDIRMODE) "$$(pwd)/.go/bin/$(OS)_$(ARCH)"
|
||||||
@docker run \
|
@docker run \
|
||||||
-i \
|
|
||||||
--rm \
|
--rm \
|
||||||
-u $$(id -u):$$(id -g) \
|
-u $$(id -u):$$(id -g) \
|
||||||
-v $$(pwd):/src \
|
-v $$(pwd):/src \
|
||||||
|
|
|
@ -35,7 +35,7 @@ export CGO_ENABLED=0
|
||||||
export GOARCH="${ARCH}"
|
export GOARCH="${ARCH}"
|
||||||
export GOOS="${OS}"
|
export GOOS="${OS}"
|
||||||
export GO111MODULE=on
|
export GO111MODULE=on
|
||||||
export GOFLAGS="-mod=vendor"
|
export GOFLAGS="-mod=mod"
|
||||||
|
|
||||||
go install \
|
go install \
|
||||||
-installsuffix "static" \
|
-installsuffix "static" \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user