Compare commits

...

8 commits
v0.0.0 ... main

Author SHA1 Message Date
trvs-sdlr
91a76bdb23
Merge pull request #88 from puppetlabs/update_codeowners
(RE-14811) Move codeowners from DIO to IT SysOps
2022-08-26 10:14:04 -07:00
Jake Spain
75ac3c5f56
Move codeowners from DIO to IT SysOps 2022-08-26 07:51:22 -04:00
Erik Hansen
25c791808c
Merge pull request #17 from puppetlabs/snyk_work
(maint) adds requirements.txt
2022-02-03 10:05:49 -08:00
suckatrash
bdbe4c6e38
adds requirements.txt 2022-02-03 10:04:44 -08:00
Erik Hansen
c8e6c33d77
Merge pull request #16 from puppetlabs/action_work
(DIO-1541) Release action rework
2021-10-15 14:58:40 -07:00
suckatrash
5c4d9fce0c
Release action needs id-token 2021-10-12 15:00:42 -07:00
Erik Hansen
84d070b538
Merge pull request #15 from puppetlabs/workflows
move workflow file to the right directory
2021-10-04 16:05:00 -07:00
suckatrash
c0fefdaec0
move workflow file to the right directory 2021-10-04 16:03:39 -07:00
4 changed files with 41 additions and 12 deletions

View file

@ -1,11 +1,19 @@
name: Publish App name: Publish App
on: workflow_dispatch on:
push:
tags:
- 'v*'
jobs: jobs:
publish-app: publish-app:
name: Tag Release and Publish to GCR name: Publish tagged release to GCR
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: 'read'
id-token: 'write'
steps: steps:
- name: Check out code - name: Check out code
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -16,14 +24,15 @@ jobs:
- name: Get Version - name: Get Version
id: get_version id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//} run: echo ::set-output name=VERSION::${GITHUB_REF##*/}
- name: 'Authenticate to Google Cloud' - name: 'Authenticate to Google Cloud'
id: 'auth' id: 'auth'
uses: 'google-github-actions/auth@v0.3.0' uses: 'google-github-actions/auth@v0.3.1'
with: with:
create_credentials_file: true token_format: 'access_token'
workload_identity_provider: 'projects/654128975483/locations/global/workloadIdentityPools/gh-action-pool' access_token_lifetime: '600s'
workload_identity_provider: 'projects/654128975483/locations/global/workloadIdentityPools/gh-action-pool/providers/github-action-provider'
service_account: 'gcr-gh-action@infracore.iam.gserviceaccount.com' service_account: 'gcr-gh-action@infracore.iam.gserviceaccount.com'
- name: Build & push Docker image - flask - name: Build & push Docker image - flask
@ -32,9 +41,10 @@ jobs:
image: infracore/infinitory-flask image: infracore/infinitory-flask
tags: ${{ steps.get_version.outputs.VERSION }} tags: ${{ steps.get_version.outputs.VERSION }}
registry: gcr.io registry: gcr.io
directory: infinitory-flask
dockerfile: infinitory-flask/Dockerfile dockerfile: infinitory-flask/Dockerfile
username: _json_key username: oauth2accesstoken
password: ${{ steps.auth.outputs.credentials_file_path }} password: ${{ steps.auth.outputs.access_token }}
- name: Build & push Docker image - cron - name: Build & push Docker image - cron
uses: mr-smithers-excellent/docker-build-push@v5 uses: mr-smithers-excellent/docker-build-push@v5
@ -43,5 +53,5 @@ jobs:
tags: ${{ steps.get_version.outputs.VERSION }} tags: ${{ steps.get_version.outputs.VERSION }}
registry: gcr.io registry: gcr.io
dockerfile: Dockerfile dockerfile: Dockerfile
username: _json_key username: oauth2accesstoken
password: ${{ steps.auth.outputs.credentials_file_path }} password: ${{ steps.auth.outputs.access_token }}

View file

@ -1,8 +1,8 @@
# This will cause InfraCore to be assigned review of any opened PRs against # This will cause IT SysOps to be assigned review of any opened PRs against
# the branches containing this file. # the branches containing this file.
# See https://help.github.com/en/articles/about-code-owners for info on how to # See https://help.github.com/en/articles/about-code-owners for info on how to
# take ownership of parts of the code base that should be reviewed by another # take ownership of parts of the code base that should be reviewed by another
# team. # team.
* @puppetlabs/dio * @puppetlabs/it-ops

View file

@ -63,3 +63,9 @@ python setup.py sdist upload -r local
``` ```
`infinitory-flask` - Simply build and push the docker image to release this portion of the app. `infinitory-flask` - Simply build and push the docker image to release this portion of the app.
Before a release, the `requirements.txt` file should be regenerated:
```
pip install pipreqs #if needed
pipreqs .
```

13
requirements.txt Normal file
View file

@ -0,0 +1,13 @@
click==8.0.3
colorlog==6.6.0
Flask==2.0.2
Jinja2==3.0.3
markdown2==2.4.2
paramiko==2.9.2
protobuf==3.19.4
Pygments==2.11.2
pypuppetdb==2.5.1
requests==2.25.1
sample==1.0.0
setuptools==52.0.0
simplepup==0.0.4