-
Notifications
You must be signed in to change notification settings - Fork 500
47 lines (41 loc) · 1.29 KB
/
build-ee-pr.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
---
name: build-ee-pr
on:
pull_request:
paths:
- tools/execution_environments/ee-multicloud-public/**
jobs:
build-and-push:
concurrency:
group: pr-${{ github.event.number }}
cancel-in-progress: true
uses: ./.github/workflows/build-ee.yml
secrets:
registry_username: ${{ secrets.QUAY_EE_MULTICLOUD_USER }}
registry_password: ${{ secrets.QUAY_EE_MULTICLOUD_TOKEN }}
with:
tag: temporary-pr-${{ github.event.number }}
labels: |-
quay.expires-after=7d
org.opencontainers.image.source=${{ github.event.repository.html_url }}
org.opencontainers.image.revision=${{ github.sha }}
get-stats-and-comment:
name: Get stats and diff for the new image
runs-on: ubuntu-latest
needs:
- build-and-push
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Run compare.sh
env:
PR: ${{ github.event.number }}
GH_TOKEN: ${{ github.token }}
working-directory: tools/execution_environments/ee-multicloud-public
run: |
./compare.sh \
quay.io/agnosticd/ee-multicloud:latest \
quay.io/agnosticd/ee-multicloud:temporary-pr-${PR} \
| gh pr comment ${PR} --body-file -