tried direct login to docker registry
Daily Update Pipeline / build-and-publish (push) Successful in 47s
Daily Update Pipeline / build-and-publish (push) Successful in 47s
This commit is contained in:
@@ -23,11 +23,16 @@ jobs:
|
|||||||
insecure = true
|
insecure = true
|
||||||
|
|
||||||
- name: Log in to Gitea Container Registry
|
- name: Log in to Gitea Container Registry
|
||||||
uses: docker/login-action@v3
|
run: |
|
||||||
with:
|
# Configure Docker to allow insecure registry for this session
|
||||||
registry: http://10.0.0.2:3000
|
mkdir -p ~/.docker
|
||||||
username: ${{ gitea.actor }}
|
echo '{
|
||||||
password: ${{ secrets.CI_RUNNER_TOKEN }}
|
"auths": {},
|
||||||
|
"insecure-registries": ["10.0.0.2:3000"]
|
||||||
|
}' > ~/.docker/config.json
|
||||||
|
|
||||||
|
# Login using direct docker command
|
||||||
|
echo "${{ secrets.CI_RUNNER_TOKEN }}" | docker login 10.0.0.2:3000 --username "${{ gitea.actor }}" --password-stdin
|
||||||
|
|
||||||
- name: Extract metadata
|
- name: Extract metadata
|
||||||
id: meta
|
id: meta
|
||||||
|
|||||||
Reference in New Issue
Block a user