-
Notifications
You must be signed in to change notification settings - Fork 18
41 lines (34 loc) · 1001 Bytes
/
pr-sanity.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
name: Sanity Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
name: Sanity Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare auth file
run: echo ${AUTH_FILE_CONTENT} | base64 -d > ${REGISTRY_AUTH_FILE}
env:
AUTH_FILE_CONTENT: ${{ secrets.BREW_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: Do sanity checks
run: |
export PATH=$(pwd):${PATH}
make sanity-brew
env:
REGISTRY_AUTH_FILE: ./auth.json
SKOPEO_CMD: podman run --dns=8.8.8.8 --rm -v .:/auth quay.io/skopeo/stable:latest
AUTH_FILE: --authfile=/auth/auth.json
OPM_CMD: ./linux-amd64-opm
DOCKER_CONFIG: .docker/