diff --git a/.travis.yml b/.travis.yml index b0dcfeb..ca81962 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/README.md b/README.md index fad7830..95ea5a5 100644 --- a/README.md +++ b/README.md @@ -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//tf-make__amd64.deb dpkg -i tf-make_.deb ### Manual install