-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from paulRbr/deploy-packages-to-github
deploy: add github release after packaging the *.deb file
- Loading branch information
Showing
2 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters