create the app verison file in the correct directory w/ burnettk

This commit is contained in:
jasquat 2023-04-07 15:48:18 -04:00
parent 56bc6d24a0
commit 14d29cd005
2 changed files with 3 additions and 4 deletions

View File

@ -65,6 +65,7 @@ jobs:
type=ref,event=branch,suffix=-${{ steps.date.outputs.date }}
- name: Write app verison info
working-directory: spiffworkflow-frontend
run: |
touch app_version.json
echo '${{ steps.meta.outputs.labels }}' > app_version.json
@ -77,7 +78,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- run: echo 'TAGS' >> "$GITHUB_STEP_SUMMARY"
- run: for tag in ${{ steps.meta.outputs.tags }}; do echo "* $tag"; done >> "$GITHUB_STEP_SUMMARY"
- run: echo 'TAGS ${{ steps.meta.outputs.tags }}' >> "$GITHUB_STEP_SUMMARY"
create_backend_docker_image:
runs-on: ubuntu-latest
@ -110,6 +111,7 @@ jobs:
type=ref,event=branch,suffix=-${{ steps.date.outputs.date }}
- name: Write app verison info
working-directory: spiffworkflow-backend
run: |
touch app_version.json
echo '${{ steps.meta.outputs.labels }}' > app_version.json

View File

@ -187,9 +187,6 @@ def create_app() -> flask.app.Flask:
def _setup_prometheus_metrics(app: flask.app.Flask, connexion_app: connexion.apps.flask_app.FlaskApp) -> None:
metrics = ConnexionPrometheusMetrics(connexion_app)
info = metrics.info('dynamic_info', 'Something dynamic')
info.set(42.1)
app.config["PROMETHEUS_METRICS"] = metrics
app_version_data = {}
if os.path.isfile("app_version.json"):