-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
51 lines (43 loc) · 1.24 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
sudo: required
language: go
env:
global:
- IMAGE_NAME=containerum/chkit
- CONTAINERUM_HOME="/home/travis/.config/containerum/.chkit-sign"
- CONTAINERUM_API="https://api.containerum.io"
services:
- docker
before_install:
- sudo openssl aes-256-cbc -K $encrypted_a90173ef0ca0_key -iv $encrypted_a90173ef0ca0_iv
-in .enc/keys.tar.enc -out keys.tar -d
- tar xvf keys.tar
- sudo mkdir -p ${CONTAINERUM_HOME}
- sudo mv privkey.pem ${CONTAINERUM_HOME}/privkey.pem
- sudo mv pubkey.pem ${CONTAINERUM_HOME}/pubkey.pem
- go get -u -v github.com/UnnoTed/fileb0x
script:
- make release
- docker build -t "$IMAGE_NAME" .
before_deploy:
- docker login -u="$DOCKER_LOGIN" -p="$DOCKER_PASSWORD"
- docker tag "$IMAGE_NAME" "${IMAGE_NAME}:latest"
- docker tag "$IMAGE_NAME" "${IMAGE_NAME}:${TRAVIS_TAG}"
deploy:
- provider: script
script: docker push "${IMAGE_NAME}:latest" && docker push "${IMAGE_NAME}:${TRAVIS_TAG}"
on:
tags: true
- provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file: build/*
skip_cleanup: true
on:
tags: true
notifications:
webhooks:
urls:
- https://integrations.bonbotics.io/travis/webhook/Vv1nUUPlGoIq3Baehmzw6DsGEbwL0F4xZRhsBHk0Vdk
on_success: always
on_failure: always
on_start: never