Skip to content

Commit

Permalink
Merge pull request #34 from paulRbr/deploy-packages-to-github
Browse files Browse the repository at this point in the history
deploy: add github release after packaging the *.deb file
  • Loading branch information
paulRbr authored Apr 2, 2018
2 parents 770babb + 23c506d commit 074ecf7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
24 changes: 14 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
---
# Use the new container infrastructure
sudo: required

jobs:
include:
- stage: test
install:
# Install terraform
- sudo make install
# Check ansible version
- terraform --version
script:
# Basic run
- make
- ./test.sh
- stage: package
- "./test.sh"
- stage: package:deploy
install:
- gem install fpm
script:
# Debian package build
- fpm -s dir -x providers -x .git -t deb -n tf-make -v $(cat VERSION) tf-make=/usr/local/bin/ Makefile=/opt/terraform/ terraform.sh=/opt/terraform/
- fpm -s dir -x providers -x .git -t deb -n tf-make -v $(cat VERSION) tf-make=/usr/local/bin/
Makefile=/opt/terraform/ terraform.sh=/opt/terraform/
deploy:
provider: releases
api_key:
secure: BWdVu3bKY96aP0q0edWeMH9VDij4MLhOz5y45BMeW+zutUHOWpNQ9Xghrnj4hrupM/GTE4z6vi62IZqnhFdeTgjzi1A1D1l/7O2w38Mzt5AXQwb5PH/SoHh//xXimwiyvaZk4KepyRsb0P3j8ysIxeh1Ypj5rBKg3TqTF9odO1AP9mmvI/zvixg6ibbg4jaF27tlJ3hRiVzL/gSmw9TztAUDEfEOG9ZNfYl4uBRmxXNx9oPGWpEWS6i/awi8MoPKDt0cf784Sryd8V+OGnkp1S5iKHwpjGw0iUdUHRIOTMMEUF0sNwqulg/BP26HfHP2BMAbxm9AD7LZ8KrPLCCyurm0/WWGUOaW++aNsf+OXouh7hecW2/riFKUaw4cql1eiyhK0rS1yGp3eZtA6J/JCkXce4fI6t7U/yn5fzpdmteMhOwIpn/N793CQmuMYXxQd01I6psddwdYsK+2DIGr2AYFZMG+FuAzwD8KBjD4BBylAy+VVeK+dCSSr4suEVN6E3bXMpUY1udJelX4tdXmifUxBw74+DHmEXmHdCIJtyOj2Hk0tJf/zWeZrh6K7x+wYqghSRBKqc/GVlQhxji/kMBb1SVg+Le4KWvMvGK+tjabssnUJBfvwziM0t8oIeCmQ3bvYv1tZevySbLcuCT6NM2ccDtzce02UQmE81gG2ao=
file_glob: true
file: tf-make_*_amd.deb
skip_cleanup: true
on:
repo: paulRbr/terraform-makefile
tags: true
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ This repository provides a Makefile to give you a simple interface for [Terrafor

### Package install

(for now packages are not published in any repository)
(for now packages are only published in [Github releases](https://github.com/paulRbr/terraform-makefile/releases))

wget https://github.com/paulRbr/terraform-makefile/releases/download/<version>/tf-make_<version>_amd64.deb
dpkg -i tf-make_<version>.deb

### Manual install
Expand Down

0 comments on commit 074ecf7

Please sign in to comment.