forked from oras-project/oras-py
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 1020 Bytes
/
auth-tests.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
name: Oras Auth Tests
on:
pull_request: []
jobs:
test-auth:
runs-on: ubuntu-latest
container: ghcr.io/oras-project/registry:latest
steps:
- uses: actions/checkout@v3
- name: Install Python
run: |
apk update && apk add python3 make apache2-utils bash
wget https://bootstrap.pypa.io/get-pip.py
python3 get-pip.py
rm get-pip.py
pip install --upgrade pip setuptools
make install
- name: Test Oras Python with Auth
env:
registry_host: localhost
registry_port: 5000
with_auth: true
REGISTRY_AUTH: "{htpasswd: {realm: localhost, path: /etc/docker/registry/auth.htpasswd}}"
REGISTRY_STORAGE_DELETE_ENABLED: "true"
run: |
htpasswd -cB -b auth.htpasswd myuser mypass
cp auth.htpasswd /etc/docker/registry/auth.htpasswd
registry serve /etc/docker/registry/config.yml & sleep 5
echo $PWD && ls $PWD && make test