Skip to content

Chore/update dotnet deps sep 2024 #1126

Chore/update dotnet deps sep 2024

Chore/update dotnet deps sep 2024 #1126

Workflow file for this run

name: Develop API CI/CD
on:
workflow_dispatch:
push:
paths:
- 'backend/**'
- '!backend/FwLite/**'
- '.github/workflows/lexbox-api.yaml'
- '.github/workflows/deploy.yaml'
- 'deployment/lexbox-deployment.yaml'
branches:
- develop
pull_request:
paths:
- 'backend/**'
- '!backend/FwLite/**'
- '.github/workflows/lexbox-api.yaml'
- '.github/workflows/deploy.yaml'
- 'deployment/lexbox-deployment.yaml'
branches:
- develop
jobs:
set-version:
name: Set Version
runs-on: ubuntu-latest
outputs:
version: ${{ steps.setVersion.outputs.VERSION }}
steps:
- name: Set Version
id: setVersion
# set version to date in vYYYY-MM-DD-commitSha format
run: |
shortSha=$(echo ${{ github.sha }} | cut -c1-8)
echo "VERSION=v$(date --rfc-3339=date)-$shortSha" >> ${GITHUB_OUTPUT}
build-api:
name: Build API
needs: set-version
uses: ./.github/workflows/lexbox-api.yaml
with:
version: ${{ needs.set-version.outputs.version }}
deploy-api:
name: Deploy API
if: ${{github.ref == 'refs/heads/develop'}}
needs: [ build-api, set-version ]
uses: ./.github/workflows/deploy.yaml
secrets: inherit
with:
version: ${{ needs.set-version.outputs.version }}
image: 'ghcr.io/sillsdev/lexbox-api'
k8s-environment: develop
deploy-domain: lexbox.dev.languagetechnology.org
integration-test-gha:
name: GHA integration tests
needs: [build-api, set-version]
uses: ./.github/workflows/integration-test-gha.yaml
with:
lexbox-api-tag: ${{ needs.set-version.outputs.version }}
# for now disabling integration tests on self hosted since they're flaky, depend on tests in gha above
# integration-tests:
# name: Integration tests
# concurrency: develop
# uses: ./.github/workflows/integration-test.yaml
# permissions:
# checks: write
# secrets: inherit
# needs: deploy-api
# with:
# environment: develop
# runs-on: self-hosted
# hg-version: 6