Browse Source

Fix master build for docs docker (#3004)

techknowlogick 2 years ago
parent
commit
d39b88ae88
2 changed files with 4 additions and 2 deletions
  1. 2 0
      .drone.yml
  2. 2 2
      docs/Dockerfile

+ 2 - 0
.drone.yml

@@ -194,6 +194,7 @@ pipeline:
194 194
     pull: true
195 195
     secrets: [ docker_username, docker_password ]
196 196
     repo: gitea/docs
197
+    context: docs
197 198
     dockerfile: docs/Dockerfile
198 199
     tags: [ '${DRONE_BRANCH##release/v}' ]
199 200
     when:
@@ -205,6 +206,7 @@ pipeline:
205 206
     pull: true
206 207
     secrets: [ docker_username, docker_password ]
207 208
     repo: gitea/docs
209
+    context: docs
208 210
     dockerfile: docs/Dockerfile
209 211
     tags: [ 'latest' ]
210 212
     when:

+ 2 - 2
docs/Dockerfile

@@ -16,7 +16,7 @@ EXPOSE 80
16 16
 RUN apk add --no-cache wget mailcap ca-certificates
17 17
 COPY --from=build-env /go/bin/caddy /usr/sbin/caddy
18 18
 
19
-COPY docs/docker/caddy.conf /etc/caddy.conf
20
-COPY docs/public /srv/www
19
+COPY docker/caddy.conf /etc/caddy.conf
20
+COPY public /srv/www
21 21
 
22 22
 CMD ["/usr/sbin/caddy", "-conf", "/etc/caddy.conf"]