dependency_updated #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Build ImagesInvalid workflow file
|
||
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 |