Skip to content

Commit ee127ce

Browse files
authored
Update demo.yaml
1 parent cd9acbb commit ee127ce

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

.github/workflows/demo.yaml

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,22 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
deployment:
9+
heroku:
10+
if: github.repository == 'devsecopsmaturitymodel/collector-confluence' && github.ref == 'refs/heads/main'
1011
runs-on: ubuntu-latest
1112
environment: heroku
1213
steps:
13-
- name: Checkout
14-
uses: actions/checkout@v4
15-
- name: deploy
16-
env:
17-
CONFLUENCE_URL: 'https://pagel-team-xbbaqjrbqjmj.atlassian.net/wiki'
18-
CONFLUENCE_PASSWORD: ${{ secrets.CONFLUENCE_PASSWORD }}
19-
CONFLUENCE_USER: ${{ secrets.CONFLUENCE_USER }}
20-
GIT_HUB_ACCESS_TOKEN: ${{ secrets.GIT_HUB_ACCESS_TOKEN }}
21-
GIT_HUB_REPO: 'metricca-data'
22-
GIT_HUB_OWNER: 'devsecopsmaturitymodel'
14+
- name: "Check out Git repository"
15+
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
16+
- name: "Set Heroku app & branch for ${{ github.ref }}"
2317
run: |
24-
echo $CONFLUENCE_URL
25-
pip install -r requirements.txt
26-
python3 ./confluence_collector.py scraping_config.yaml
18+
echo $GITHUB_REF
19+
echo "HEROKU_BRANCH=main" >> $GITHUB_ENV
20+
- name: "Deploy ${{ github.ref }} to Heroku"
21+
uses: akhileshns/heroku-deploy@9fd0f9faae4aa93a38d6f5e25b9128589f1371b0 #v3.12.14
22+
with:
23+
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
24+
heroku_app_name: "collector-confluence"
25+
heroku_email: timo.pagel@owasp.org
26+
branch: "main"
27+
usedocker: true

0 commit comments

Comments
 (0)