Skip to content

Commit

Permalink
Merge pull request #310 from devsecopsmaturitymodel/wurstbrot-patch-2
Browse files Browse the repository at this point in the history
Create depoy.yml
  • Loading branch information
wurstbrot authored Jul 19, 2024
2 parents 772f18d + 984bb5e commit e820203
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/depoy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
schedule:
- cron: "0 7 9 9 9"


jobs:
heroku:
runs-on: ubuntu-latest
steps:
- name: "Check out Git repository"
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
- name: "Set Heroku app & branch for ${{ github.ref }}"
run: |
echo $GITHUB_REF
if [ "$GITHUB_REF" == "refs/heads/master" ]; then
echo "HEROKU_APP=" >> $GITHUB_ENV
echo "HEROKU_BRANCH=master" >> $GITHUB_ENV
fi
echo "HEROKU_BRANCH=master" >> $GITHUB_ENV
- name: "Deploy ${{ github.ref }} to Heroku"
uses: akhileshns/heroku-deploy@9fd0f9faae4aa93a38d6f5e25b9128589f1371b0 #v3.12.14
with:
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: "dsomm"
heroku_email: [email protected]
branch: ${{ env.HEROKU_BRANCH }}
usedocker: true

0 comments on commit e820203

Please sign in to comment.