Retry on 500 #326
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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_HTTP_TLS_CERTIFICATE: "/etc/docker/registry/server.cert" | |
REGISTRY_HTTP_TLS_KEY: "/etc/docker/registry/server.key" | |
REGISTRY_STORAGE_DELETE_ENABLED: "true" | |
run: | | |
htpasswd -cB -b auth.htpasswd myuser mypass | |
cp auth.htpasswd /etc/docker/registry/auth.htpasswd | |
apk add openssl | |
openssl req -newkey rsa:4096 -nodes -sha256 -keyout /etc/docker/registry/server.key -x509 -days 365 -subj "/C=IT/ST=Lombardy/L=Milan/O=Acme Org/OU=IT Department/CN=example.com" -out /etc/docker/registry/server.cert | |
registry serve /etc/docker/registry/config.yml & sleep 5 | |
echo $PWD && ls $PWD && make test |