-
Notifications
You must be signed in to change notification settings - Fork 18
47 lines (40 loc) · 1.08 KB
/
check-prod.yaml
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: Sanity Checks
on:
push:
branches: [ main ]
paths-ignore:
- '.tekton/**'
pull_request:
branches: [ main ]
paths-ignore:
- '.tekton/**'
workflow_dispatch:
jobs:
build:
name: Compare with production
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 3
- name: Prepare auth file
run: echo ${AUTH_FILE_CONTENT} | base64 -d > ${REGISTRY_AUTH_FILE}
env:
AUTH_FILE_CONTENT: ${{ secrets.RREGISTRY_AUTH }}
REGISTRY_AUTH_FILE: ./auth.json
- name: Get opm clients
run: |
source opm_utils.sh
download_opm_client
mkdir -p .docker
cp auth.json .docker/config.json
- name: Compare with production
run: |
export PATH=$(pwd):${PATH}
make check-prod
env:
REGISTRY_AUTH_FILE: ./auth.json
SKOPEO_CMD: podman run --rm -v .:/auth quay.io/skopeo/stable:latest
AUTH_FILE: --authfile=/auth/auth.json
DOCKER_CONFIG: .docker/