eShopOnContainers/.github/workflows/mobileshoppingagg.yml

50 lines
1.2 KiB
YAML
Raw Normal View History

2020-12-28 09:09:43 +01:00
name: mobileshoppingagg
on:
workflow_dispatch:
2020-12-28 09:09:43 +01:00
push:
branches:
- dev
paths:
2021-01-26 12:26:05 +01:00
- src/ApiGateways/Mobile.Bff.Shopping/aggregator/**
2020-12-28 09:09:43 +01:00
- .github/workflows/mobileshoppingagg.yml
pull_request:
branches:
- dev
2021-01-24 22:01:48 +01:00
paths:
2021-01-26 12:26:05 +01:00
- src/ApiGateways/Mobile.Bff.Shopping/aggregator/**
2021-01-24 22:01:48 +01:00
- .github/workflows/mobileshoppingagg.yml
2020-12-28 09:09:43 +01:00
env:
SERVICE: mobileshoppingagg
IMAGE: mobileshoppingagg
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 }}