aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.travis.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-02-29 22:03:12 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-01 01:46:51 +0300
commita013de68e095651fdc66692621b25ecde7a1a767 (patch)
tree1dc4d16ba2af84fc5c5e8ad717b01fa56a9c731a /.travis.yml
parentREADME: update (diff)
downloadcgitize-a013de68e095651fdc66692621b25ecde7a1a767.tar.gz
cgitize-a013de68e095651fdc66692621b25ecde7a1a767.zip
build & publish multi-arch Docker images
Diffstat (limited to '')
-rw-r--r--.travis.yml14
1 files changed, 14 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 635c87c..8b3490d 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,6 @@
os: linux
dist: bionic
+
jobs:
include:
- name: Test locally
@@ -11,3 +12,16 @@ jobs:
services:
- docker
script: ./.travis/docker/test.sh
+ - stage: publish
+ language: minimal
+ name: 'Docker: build & publish multi-arch images'
+ if: branch = master
+ addons:
+ apt:
+ # Newer docker for BuildKit/buildx support:
+ packages:
+ - docker-ce
+ sources:
+ - key_url: 'https://download.docker.com/linux/ubuntu/gpg'
+ sourceline: 'deb https://download.docker.com/linux/ubuntu "$(lsb_release -cs)" stable'
+ script: make login && make buildx/create && make buildx/push