Update _index.md

This commit is contained in:
Maxim Slipenko 2023-08-10 21:28:32 +03:00 committed by GitHub
parent 6d13cf910f
commit d42c388fc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 30 additions and 7 deletions

View File

@ -104,6 +104,18 @@ name: default
steps:
- name: docker
image: thegeeklab/drone-docker-buildx:23
commands:
- |
export PLUGIN_REGISTRIES=$(cat <<EOF
registries:
- username: "octocat"
password: "$${DOCKER_REGISTRY_PASSWORD}"
- registry: "ghcr.io"
username: "octocat"
password: "$${GITHUB_REGISTRY_PASSWORD}"
EOF
)
- drone-docker-buildx
privileged: true
environment:
DOCKER_REGISTRY_PASSWORD:
@ -115,15 +127,26 @@ steps:
- octocat/example
- ghcr.io/octocat/example
tags: latest
registries: |
registries:
- username: "octocat"
password: "$DOCKER_REGISTRY_PASSWORD"
- registry: "ghcr.io"
username: "octocat"
password: "$GITHUB_REGISTRY_PASSWORD"
```
OR
```yaml
kind: pipeline
name: default
steps:
- name: docker
image: thegeeklab/drone-docker-buildx:23
privileged: true
settings:
repo:
- octocat/example
- ghcr.io/octocat/example
tags: latest
registries:
from_secret: registries_data
```
## Build