Skip to content

Commit

Permalink
Merge pull request #118 from plus3it/lorengordon-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon authored May 6, 2021
2 parents 05698bf + c1d3246 commit 764de12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@ stages:
- lint
- deploy

if: branch = master OR type = pull_request

jobs:
include:
- stage: lint
name: Project Syntax Verification
script: make && make docker/run target=lint
- stage: deploy
if: branch = master AND type = push AND repo = plus3it/terraform-aws-tardigrade-ram-principal-association
if: branch = master AND type = push AND repo = plus3it/terraform-aws-tardigrade-ram-share
before_script:
- |
PRIOR_VERSION=$(git describe --abbrev=0 --tags)
RELEASE_VERSION=$(grep current_version $TRAVIS_BUILD_DIR/.bumpversion.cfg | sed 's/^.*= //' )
RELEASE_BODY="* [terraform-aws-tardigrade-ram-principal-association v$RELEASE_VERSION CHANGELOG](https://github.com/plus3it/terraform-aws-tardigrade-ram-principal-association/blob/$RELEASE_VERSION/CHANGELOG.md)"
RELEASE_BODY="* [terraform-aws-tardigrade-ram-share v$RELEASE_VERSION CHANGELOG](https://github.com/plus3it/terraform-aws-tardigrade-ram-share/blob/$RELEASE_VERSION/CHANGELOG.md)"
export PRIOR_VERSION RELEASE_VERSION RELEASE_BODY
script: skip
before_deploy:
Expand All @@ -37,5 +39,5 @@ jobs:
draft: false
on:
branch: master
repo: plus3it/terraform-aws-tardigrade-ram-principal-association
repo: plus3it/terraform-aws-tardigrade-ram-share
condition: '"$PRIOR_VERSION" != "$RELEASE_VERSION"'

0 comments on commit 764de12

Please sign in to comment.