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 4c02eb3cbb
commit ff70c20acd
No known key found for this signature in database
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 }} type=ref,event=branch,suffix=-${{ steps.date.outputs.date }}
- name: Write app verison info - name: Write app verison info
working-directory: spiffworkflow-frontend
run: | run: |
touch app_version.json touch app_version.json
echo '${{ steps.meta.outputs.labels }}' > app_version.json echo '${{ steps.meta.outputs.labels }}' > app_version.json
@ -77,7 +78,7 @@ jobs:
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
- run: echo 'TAGS' >> "$GITHUB_STEP_SUMMARY" - 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: create_backend_docker_image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -110,6 +111,7 @@ jobs:
type=ref,event=branch,suffix=-${{ steps.date.outputs.date }} type=ref,event=branch,suffix=-${{ steps.date.outputs.date }}
- name: Write app verison info - name: Write app verison info
working-directory: spiffworkflow-backend
run: | run: |
touch app_version.json touch app_version.json
echo '${{ steps.meta.outputs.labels }}' > 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: def _setup_prometheus_metrics(app: flask.app.Flask, connexion_app: connexion.apps.flask_app.FlaskApp) -> None:
metrics = ConnexionPrometheusMetrics(connexion_app) metrics = ConnexionPrometheusMetrics(connexion_app)
info = metrics.info('dynamic_info', 'Something dynamic')
info.set(42.1)
app.config["PROMETHEUS_METRICS"] = metrics app.config["PROMETHEUS_METRICS"] = metrics
app_version_data = {} app_version_data = {}
if os.path.isfile("app_version.json"): if os.path.isfile("app_version.json"):