This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
upgrade GitHub checkout action to version 3 (#2090) #114
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: webhooks-client | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- dev | |
paths: | |
- src/BuildingBlocks/** | |
- src/Web/WebhookClient/** | |
- .github/workflows/webhooks-client.yml | |
pull_request: | |
branches: | |
- dev | |
paths: | |
- src/BuildingBlocks/** | |
- src/Web/WebhookClient/** | |
- .github/workflows/webhooks-client.yml | |
env: | |
SERVICE: webhooks-client | |
IMAGE: webhooks.client | |
jobs: | |
BuildContainersForPR_Linux: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name == 'pull_request' }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: ./.github/workflows/composite/build | |
with: | |
service: ${{ env.SERVICE }} | |
registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }} | |
BuildLinux: | |
runs-on: ubuntu-latest | |
if: ${{ github.event_name != 'pull_request' }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- uses: ./.github/workflows/composite/build-push | |
with: | |
service: ${{ env.SERVICE }} | |
registry_host: ${{ secrets.REGISTRY_HOST }} | |
registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }} | |
image_name: ${{ env.IMAGE }} | |
registry_username: ${{ secrets.USERNAME }} | |
registry_password: ${{ secrets.PASSWORD }} |