Re-build with cache changes

This commit is contained in:
Tyler 2017-09-14 00:37:23 -04:00
parent 78171c86c0
commit ca3f9f1709
3 changed files with 19 additions and 9 deletions

View File

@ -17,15 +17,19 @@ glide-install:
- glide install - glide install
- cd $CI_PROJECT_DIR - cd $CI_PROJECT_DIR
- mkdir -p build/i386 build/amd64 build/armv7 - mkdir -p build/i386 build/amd64 build/armv7
- tar -zcf cache.tgz src/meow.tf/deb-simple/vendor
cache: cache:
key: "pipeline-$CI_PIPELINE_ID" key: "pipeline-$CI_PIPELINE_ID"
policy: push policy: push
paths: paths:
- src/meow.tf/deb-simple/vendor - cache.tgz
build-i386: build-i386:
stage: build stage: build
script: script:
- echo "Extracting vendor files..."
- tar -xf cache.tgz
- echo "Building i386 binary..."
- mkdir -p build/i386 - mkdir -p build/i386
- GOOS=linux GOARCH=386 go build -o build/i386/deb-simple - GOOS=linux GOARCH=386 go build -o build/i386/deb-simple
artifacts: artifacts:
@ -35,11 +39,14 @@ build-i386:
key: "pipeline-$CI_PIPELINE_ID" key: "pipeline-$CI_PIPELINE_ID"
policy: pull policy: pull
paths: paths:
- src/meow.tf/deb-simple/vendor - cache.tgz
build-amd64: build-amd64:
stage: build stage: build
script: script:
- echo "Extracting vendor files..."
- tar -xf cache.tgz
- echo "Building amd64 binary..."
- mkdir -p build/amd64 - mkdir -p build/amd64
- go build -o build/amd64/deb-simple - go build -o build/amd64/deb-simple
artifacts: artifacts:
@ -49,11 +56,14 @@ build-amd64:
key: "pipeline-$CI_PIPELINE_ID" key: "pipeline-$CI_PIPELINE_ID"
policy: pull policy: pull
paths: paths:
- src/meow.tf/deb-simple/vendor - cache.tgz
build-armv7: build-armv7:
stage: build stage: build
script: script:
- echo "Extracting vendor files..."
- tar -xf cache.tgz
- echo "Building armv7 binary..."
- mkdir -p build/armv7 - mkdir -p build/armv7
- GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple - GOOS=linux GOARCH=arm GOARM=7 go build -o build/armv7/deb-simple
artifacts: artifacts:
@ -63,7 +73,7 @@ build-armv7:
key: "pipeline-$CI_PIPELINE_ID" key: "pipeline-$CI_PIPELINE_ID"
policy: pull policy: pull
paths: paths:
- src/meow.tf/deb-simple/vendor - cache.tgz
package: package:
stage: package stage: package

View File

@ -1,12 +1,12 @@
hash: 33760adb1090508f6d56dfc1d600a664790a280e5fc4d84cb26a7e11ad0f1f35 hash: 1a6d5cdf757d6be4cab4e8b0d2224a38038fb086e135b15282ba85d02c54368a
updated: 2017-06-11T20:13:27.6668377-04:00 updated: 2017-09-14T00:26:28.2385236-04:00
imports: imports:
- name: github.com/blakesmith/ar - name: github.com/blakesmith/ar
version: 8bd4349a67f2533b078dbc524689d15dba0f4659 version: 8bd4349a67f2533b078dbc524689d15dba0f4659
- name: github.com/blang/semver - name: github.com/blang/semver
version: b38d23b8782a487059e8fc8773e9a5b228a77cb6 version: 2ee87856327ba09384cabd113bc6b5d174e9ec0f
- name: github.com/go-ini/ini - name: github.com/go-ini/ini
version: d3de07a94d22b4a0972deb4b96d790c2c0ce8333 version: 20b96f641a5ea98f2f8619ff4f3e061cff4833bd
- name: golang.org/x/crypto - name: golang.org/x/crypto
version: 7e9105388ebff089b3f99f0ef676ea55a6da3a7e version: 7e9105388ebff089b3f99f0ef676ea55a6da3a7e
subpackages: subpackages:

View File

@ -1,4 +1,4 @@
package: . package: meow.tf/deb-simple
import: import:
- package: github.com/blakesmith/ar - package: github.com/blakesmith/ar
- package: golang.org/x/crypto - package: golang.org/x/crypto