From 24706a084dfcd3cd0359aeea561ed039afb9d736 Mon Sep 17 00:00:00 2001 From: Erno Aapa Date: Sun, 10 Dec 2017 13:41:12 +0200 Subject: [PATCH] Build linuxkit packages in Circleci --- .circleci/config.yml | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 65e6c33..2217261 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -2,12 +2,31 @@ version: 2 jobs: build: docker: - - image: debian:stretch + - image: circleci/golang:1.9 + working_directory: /go/src/github.com/ernoaapa/eliot steps: - checkout + + - setup_remote_docker + - run: - name: Greeting - command: echo Hello, world. + name: Install tools + command: | + go get -u github.com/linuxkit/linuxkit/src/cmd/linuxkit + go get -u github.com/estesp/manifest-tool + - run: - name: Print the Current Time - command: date + name: Login Docker hub + command: echo $DOCKER_PASS | docker login --username $DOCKER_USER --password-stdin + + - run: + name: Build & push images + command: | + cd pkg + make forcepush + +workflows: + version: 2 + build: + jobs: + - build \ No newline at end of file