From 9c8f53d654349e8130c26971efda3152d029dc83 Mon Sep 17 00:00:00 2001 From: Yussuf Shaikh Date: Wed, 25 Nov 2020 10:17:19 +0000 Subject: [PATCH] Correct builds --- .travis.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2387c92..f42f898 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,18 +2,24 @@ language: go arch: ppc64le os: linux go: -- 1.6 +- 1.15 + +before_script: +- sudo apt update -y +- sudo apt install zip git -y script: -- go get -d -v github.com/community-terraform-providers/terraform-provider-ignition@v2.1.1 -- mkdir bin -- go build -o bin/terraform-provider-ignition github.com/community-terraform-providers/terraform-provider-ignition -- zip bin.zip bin/ +- git clone -b v2.1.1 https://github.com/community-terraform-providers/terraform-provider-ignition $GOPATH/src/github.com/terraform-providers/terraform-provider-ignition +- cd $GOPATH/src/github.com/terraform-providers/terraform-provider-ignition +- make build +- zip archive.zip $GOPATH/bin/ deploy: provider: releases api_key: ${GITHUB_OAUTH_TOKEN} - file: bin.zip + file: archive.zip skip_cleanup: true + on: + branch: release env: global: