Skip to content

dependency_updated

dependency_updated #8

Workflow file for this run

name: Build Images
on:
workflow_dispatch:
repository_dispatch:
types: [dependency_updated]
jobs:
build-api:
if: ${{ github.event.client_payload.triggered_by == "childmindresearch/ctk-functions, on push event" }}

Check failure on line 10 in .github/workflows/build.yaml

View workflow run for this annotation

GitHub Actions / Build Images

Invalid workflow file

The workflow is not valid. .github/workflows/build.yaml (Line: 10, Col: 9): Unexpected symbol: '"childmindresearch/ctk-functions'. Located at position 45 within expression: github.event.client_payload.triggered_by == "childmindresearch/ctk-functions, on push event" .github/workflows/build.yaml (Line: 30, Col: 9): Unexpected symbol: '"childmindresearch/ctk-webapp'. Located at position 45 within expression: github.event.client_payload.triggered_by == "childmindresearch/ctk-webapp, on push event"
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Action
uses: actions/checkout@main
with:
repository: childmindresearch/ctk-functions
- name: Build and push image
uses: azure/docker-login@v2
with:
login-server: ${{ secrets.ACR_LOGIN_SERVER }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- run: |
docker build . --build-arg AZURE_BLOB_SIGNATURES_CONNECTION_STRING="${{ secrets.AZURE_BLOB_SIGNATURES_CONNECTION_STRING }}" -t ${{ secrets.ACR_LOGIN_SERVER }}/ctk-functions:latest
docker push ${{ secrets.ACR_LOGIN_SERVER }}/ctk-functions:latest
build-frontend:
if: ${{ github.event.client_payload.triggered_by == "childmindresearch/ctk-webapp, on push event" }}
runs-on: ubuntu-latest
steps:
- name: Checkout GitHub Action
uses: actions/checkout@main
with:
repository: childmindresearch/ctk-webapp
- name: Build and push image
uses: azure/docker-login@v2
with:
login-server: ${{ secrets.ACR_LOGIN_SERVER }}
username: ${{ secrets.ACR_USERNAME }}
password: ${{ secrets.ACR_PASSWORD }}
- run: |
docker build . -t ${{ secrets.ACR_LOGIN_SERVER }}/ctk-webapp:latest
docker push ${{ secrets.ACR_LOGIN_SERVER }}/ctk-webapp:latest