api no longer fails when no pilots or logbook entries
This commit is contained in:
7
.github/workflows/api.yaml
vendored
7
.github/workflows/api.yaml
vendored
@@ -5,6 +5,9 @@ on:
|
|||||||
calling_workflow:
|
calling_workflow:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
version_number:
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -43,7 +46,7 @@ jobs:
|
|||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: noahspan/flying-api:${{ github.run_id }}
|
tags: noahspan/flying-api:${{ inputs.version_number }}
|
||||||
file: ./api/Dockerfile
|
file: ./api/Dockerfile
|
||||||
context: ./api
|
context: ./api
|
||||||
|
|
||||||
@@ -59,4 +62,4 @@ jobs:
|
|||||||
|
|
||||||
- name: Update Container App
|
- name: Update Container App
|
||||||
run: |
|
run: |
|
||||||
az containerapp update --name flying-api-${{ inputs.calling_workflow }}-${{ github.run_id }} --resource-group noahspan --image docker.io/noahspan/flying-api:${{ github.run_id }}
|
az containerapp update --name flying-api-${{ inputs.calling_workflow }} --revision-suffix ${{ inputs.version_number }} --resource-group noahspan --image docker.io/noahspan/flying-api:${{ inputs.version_number }}
|
||||||
|
|||||||
13
.github/workflows/dev.yaml
vendored
13
.github/workflows/dev.yaml
vendored
@@ -29,18 +29,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "modified_files=${MODIFIED_FILES}" >> "$GITHUB_OUTPUT"
|
echo "modified_files=${MODIFIED_FILES}" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
github-output:
|
|
||||||
name: git-hub-output
|
|
||||||
needs:
|
|
||||||
- changed-files
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: GitHub output
|
|
||||||
env:
|
|
||||||
OUTPUT: ${{ needs.changed-files.outputs.modified_files }}
|
|
||||||
run: |
|
|
||||||
echo '${{ toJSON(needs.changed-files.outputs) }}'
|
|
||||||
|
|
||||||
build-deploy-api:
|
build-deploy-api:
|
||||||
if: contains(needs.changed-files.outputs.modified_files, 'api')
|
if: contains(needs.changed-files.outputs.modified_files, 'api')
|
||||||
name: build-deploy-api
|
name: build-deploy-api
|
||||||
@@ -49,6 +37,7 @@ jobs:
|
|||||||
uses: ./.github/workflows/api.yaml
|
uses: ./.github/workflows/api.yaml
|
||||||
with:
|
with:
|
||||||
calling_workflow: dev
|
calling_workflow: dev
|
||||||
|
version_number: ${{ github.run_id }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
build-deploy-app:
|
build-deploy-app:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "api",
|
"name": "api",
|
||||||
"version": "0.0.4",
|
"version": "0.0.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"author": "",
|
"author": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user