You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 29, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: _docs/content/_index.md
+6-30Lines changed: 6 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ The tags follow the major version of Docker, e.g. `20`, and the minor and patch
27
27
Be aware that the this plugin requires [privileged](https://docs.drone.io/pipeline/docker/syntax/steps/#privileged-mode) capabilities, otherwise the integrated Docker daemon is not able to start.
28
28
{{< /hint >}}
29
29
30
-
```YAML
30
+
```yaml
31
31
kind: pipeline
32
32
name: default
33
33
@@ -58,7 +58,7 @@ If the created image is to be pushed to registries other than the default Docker
58
58
59
59
**GHCR:**
60
60
61
-
```YAML
61
+
```yaml
62
62
kind: pipeline
63
63
name: default
64
64
@@ -76,7 +76,7 @@ steps:
76
76
77
77
**AWS ECR:**
78
78
79
-
```YAML
79
+
```yaml
80
80
kind: pipeline
81
81
name: default
82
82
@@ -95,35 +95,11 @@ steps:
95
95
tags: latest
96
96
```
97
97
98
-
#### Expose secrets to the build
99
-
100
-
The [secrets](https://docs.docker.com/engine/reference/commandline/buildx_build/#secret) can be used by the build using `RUN --mount=type=secret` mount.
101
-
102
-
```Yaml
103
-
kind: pipeline
104
-
name: default
105
-
106
-
steps:
107
-
- name: docker
108
-
image: thegeeklab/drone-docker-buildx:23
109
-
privileged: true
110
-
environment:
111
-
SECURE_TOKEN:
112
-
from_secret: secure_token
113
-
settings:
114
-
secrets:
115
-
- "id=raw_file_secret\\\\,src=file.txt"
116
-
- 'id=other_raw_file_secret\\,src=other_file.txt'
117
-
- "id=SECRET_TOKEN"
118
-
```
119
-
120
-
To use secrets from files a [host volume](https://docs.drone.io/pipeline/docker/syntax/volumes/host/) is required. This should be used with caution and avoided whenever possible.
121
-
122
98
## Build
123
99
124
100
Build the binary with the following command:
125
101
126
-
```Shell
102
+
```shell
127
103
export GOOS=linux
128
104
export GOARCH=amd64
129
105
export CGO_ENABLED=0
@@ -134,13 +110,13 @@ make build
134
110
135
111
Build the Docker image with the following command:
0 commit comments