Skip to content

update deploy workflow #3

update deploy workflow

update deploy workflow #3

Workflow file for this run

name: Deploy UI CI/CD
on:
push:
paths:
- 'frontend/**'
- '.github/workflows/lexbox-ui.yaml'
- '.github/workflows/deploy.yaml'
branches:
- develop
pull_request:
paths:
- 'frontend/**'
- '.github/workflows/lexbox-ui.yaml'
- '.github/workflows/deploy.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-ui:
name: Build UI
needs: set-version
uses: ./.github/workflows/lexbox-ui.yaml
with:
version: ${{ needs.set-version.outputs.version }}
deploy-api:
name: Deploy API
needs: [ build-ui, set-version ]
uses: ./.github/workflows/deploy.yaml

Check failure on line 39 in .github/workflows/develop-ui.yaml

View workflow run for this annotation

GitHub Actions / Deploy UI CI/CD

Invalid workflow file

The workflow is not valid. .github/workflows/develop-ui.yaml (Line: 39, Col: 11): Input deploy-domain is required, but not provided while calling. .github/workflows/develop-ui.yaml (Line: 45, Col: 24): Invalid input, health-endpoint is not defined in the referenced workflow.
secrets: inherit
with:
version: ${{ needs.set-version.outputs.version }}
image: 'ghcr.io/sillsdev/lexbox-ui'
k8s-environment: staging #todo change to develop
health-endpoint: https://staging.languagedepot.org/api/healthz #todo change to develop
check-and-lint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- uses: actions/checkout@v3
- run: corepack enable
- run: pnpm install
- run: pnpm run build # We need code/types generated by the build (e.g. gql/generated)
- run: pnpm run check --output machine
- run: pnpm run lint:report
- name: Annotate Code Linting REsults
uses: ataylorme/[email protected]
if: always()
with:
report-json: ./frontend/eslint_report.json