adapted to containerized runner
This commit is contained in:
@@ -22,18 +22,10 @@ jobs:
|
|||||||
http = true
|
http = true
|
||||||
insecure = true
|
insecure = true
|
||||||
|
|
||||||
- name: Configure Docker daemon for insecure registry
|
|
||||||
run: |
|
|
||||||
sudo mkdir -p /etc/docker
|
|
||||||
echo '{
|
|
||||||
"insecure-registries": ["10.0.0.2:3000"]
|
|
||||||
}' | sudo tee /etc/docker/daemon.json
|
|
||||||
sudo systemctl restart docker || sudo service docker restart
|
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Log in to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: 10.0.0.2:3000
|
registry: http://10.0.0.2:3000
|
||||||
username: ${{ gitea.actor }}
|
username: ${{ gitea.actor }}
|
||||||
password: ${{ secrets.CI_RUNNER_TOKEN }}
|
password: ${{ secrets.CI_RUNNER_TOKEN }}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user