eShopOnContainers/.github/workflows/webhooks-client.yml

52 lines
1.2 KiB
YAML
Raw Normal View History

2020-12-28 09:09:43 +01:00
name: webhooks-client
on:
workflow_dispatch:
2020-12-28 09:09:43 +01:00
push:
branches:
- dev
paths:
2021-01-26 12:26:05 +01:00
- src/BuildingBlocks/**
- src/Web/WebhookClient/**
2020-12-28 09:09:43 +01:00
- .github/workflows/webhooks-client.yml
pull_request:
branches:
- dev
2021-01-24 22:01:48 +01:00
paths:
2021-01-26 12:26:05 +01:00
- src/BuildingBlocks/**
- src/Web/WebhookClient/**
2021-01-24 22:01:48 +01:00
- .github/workflows/webhooks-client.yml
2020-12-28 09:09:43 +01:00
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@v2
- uses: ./.github/workflows/composite/build
with:
service: ${{ env.SERVICE }}
registry_endpoint: ${{ secrets.REGISTRY_ENDPOINT }}
2020-12-28 09:09:43 +01:00
BuildLinux:
runs-on: ubuntu-latest
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: ./.github/workflows/composite/build-push
2020-12-28 09:09:43 +01:00
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 }}