Skip to content

lab1222

lab1222 #665

Workflow file for this run

---
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 -