forked from TrueCloudLab/certificates
More Travis tweaks
This commit is contained in:
parent
998162392b
commit
be26c294ca
2 changed files with 10 additions and 11 deletions
13
.travis.yml
13
.travis.yml
|
@ -1,4 +1,5 @@
|
||||||
language: go
|
language: go
|
||||||
|
os: linux
|
||||||
dist: focal
|
dist: focal
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
@ -18,10 +19,10 @@ before_script:
|
||||||
- make bootstrap
|
- make bootstrap
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- script: make lint
|
- stage: lint
|
||||||
- script: make test
|
script: make lint
|
||||||
- stage: build
|
- script:
|
||||||
script:
|
- make test
|
||||||
- make build
|
- make build
|
||||||
- make artifacts
|
- make artifacts
|
||||||
after_success:
|
after_success:
|
||||||
|
@ -31,8 +32,8 @@ notifications:
|
||||||
email: false
|
email: false
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
skip_cleanup: true
|
cleanup: false
|
||||||
api_key:
|
token:
|
||||||
secure: EVV43Vkqn67hhKGYn4WhQp2YO6KFmUDSkLXjYXYGX07Fm8p5KjRFBPOz9LV83QrvVmLigvg0CtR8Jqqcnq2SUhus3nhZaN2g19NhMypZLioyOVP0kAkas8ocuvxkwz3YxIK/yMrmTKbQ7JGXtbc8IjAox9ovNo1fFIQmVMAzPfu++OWBJ0j+gUqKtpaNA7gzsSv8UOw3/T3hNm6E1IbpWxl9BPSOzUOE9F/QOThANzifGfdxvqNJFkAgqu5DVPz8zQNbMrz4zH+KwASKxd6hjhzSSMzouKzOEHTA/elDCHEjke0Jos29MkGWHcIydLtCD95DGecqM8BFSC9f2acHDjmUO1rdfoLA3Pt+UiZJuTwyQm/jrHHhRnH8oJpK15G5LvxSqzY9YDWpAk38+jMw/udW6wt7BGAU8FEXLbq0bsFL3yfTepeWjmzT5WS0YXdiBz2SEK+Og9R2bSdtl4owghRzKNio5DNPuYAbqbpi+jqzqQVLj27x7LWoQ0MHvZcz9U+oO00r6M1tDCmFVRdtfgb2H+MIDY69qYGo5qoGMfH1btCWR8bA9wSYB/Z7hW/xZT9r7f/d5/P40k8yKINmTZqyUTQeplrE3y4BPVzKksclczBZa67syIUQ49I35QppnH4GFQHUwlra7r3W9zfZRvaLnp5qOIKAQe3MAIZqtLg=
|
secure: EVV43Vkqn67hhKGYn4WhQp2YO6KFmUDSkLXjYXYGX07Fm8p5KjRFBPOz9LV83QrvVmLigvg0CtR8Jqqcnq2SUhus3nhZaN2g19NhMypZLioyOVP0kAkas8ocuvxkwz3YxIK/yMrmTKbQ7JGXtbc8IjAox9ovNo1fFIQmVMAzPfu++OWBJ0j+gUqKtpaNA7gzsSv8UOw3/T3hNm6E1IbpWxl9BPSOzUOE9F/QOThANzifGfdxvqNJFkAgqu5DVPz8zQNbMrz4zH+KwASKxd6hjhzSSMzouKzOEHTA/elDCHEjke0Jos29MkGWHcIydLtCD95DGecqM8BFSC9f2acHDjmUO1rdfoLA3Pt+UiZJuTwyQm/jrHHhRnH8oJpK15G5LvxSqzY9YDWpAk38+jMw/udW6wt7BGAU8FEXLbq0bsFL3yfTepeWjmzT5WS0YXdiBz2SEK+Og9R2bSdtl4owghRzKNio5DNPuYAbqbpi+jqzqQVLj27x7LWoQ0MHvZcz9U+oO00r6M1tDCmFVRdtfgb2H+MIDY69qYGo5qoGMfH1btCWR8bA9wSYB/Z7hW/xZT9r7f/d5/P40k8yKINmTZqyUTQeplrE3y4BPVzKksclczBZa67syIUQ49I35QppnH4GFQHUwlra7r3W9zfZRvaLnp5qOIKAQe3MAIZqtLg=
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file: .travis-releases/*
|
file: .travis-releases/*
|
||||||
|
|
|
@ -17,9 +17,9 @@ DOCKER_IMAGE_NAME = smallstep/step-ca
|
||||||
|
|
||||||
docker-prepare:
|
docker-prepare:
|
||||||
# Ensure, we can build for ARM architecture
|
# Ensure, we can build for ARM architecture
|
||||||
ifeq (linux,$(DOCKER_CLIENT_OS))
|
# ifeq (linux,$(DOCKER_CLIENT_OS))
|
||||||
[ -f /proc/sys/fs/binfmt_misc/qemu-arm ] || docker run --rm --privileged linuxkit/binfmt:v0.8-amd64
|
# [ -f /proc/sys/fs/binfmt_misc/qemu-arm ] || docker run --rm --privileged linuxkit/binfmt:v0.8-amd64
|
||||||
endif
|
# endif
|
||||||
|
|
||||||
# Register buildx builder
|
# Register buildx builder
|
||||||
mkdir -p $$HOME/.docker/cli-plugins
|
mkdir -p $$HOME/.docker/cli-plugins
|
||||||
|
@ -28,8 +28,6 @@ endif
|
||||||
(wget -q -O $$HOME/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.$(DOCKER_CLIENT_OS)-amd64 && \
|
(wget -q -O $$HOME/.docker/cli-plugins/docker-buildx https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.$(DOCKER_CLIENT_OS)-amd64 && \
|
||||||
chmod +x $$HOME/.docker/cli-plugins/docker-buildx)
|
chmod +x $$HOME/.docker/cli-plugins/docker-buildx)
|
||||||
|
|
||||||
# Called directly instead of via `docker buildx` because
|
|
||||||
# Travis runs a pre-19.03 Docker that doesn't support plugin discovery
|
|
||||||
docker buildx create --use --name mybuilder --platform="$(DOCKER_PLATFORMS)" || true
|
docker buildx create --use --name mybuilder --platform="$(DOCKER_PLATFORMS)" || true
|
||||||
|
|
||||||
.PHONY: docker-prepare
|
.PHONY: docker-prepare
|
||||||
|
|
Loading…
Reference in a new issue