Update _index.md
This commit is contained in:
parent
6d13cf910f
commit
d42c388fc8
|
@ -104,6 +104,18 @@ name: default
|
||||||
steps:
|
steps:
|
||||||
- name: docker
|
- name: docker
|
||||||
image: thegeeklab/drone-docker-buildx:23
|
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
|
privileged: true
|
||||||
environment:
|
environment:
|
||||||
DOCKER_REGISTRY_PASSWORD:
|
DOCKER_REGISTRY_PASSWORD:
|
||||||
|
@ -115,15 +127,26 @@ steps:
|
||||||
- octocat/example
|
- octocat/example
|
||||||
- ghcr.io/octocat/example
|
- ghcr.io/octocat/example
|
||||||
tags: latest
|
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
|
## Build
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue