add drone docker image build

This commit is contained in:
weeman 2021-07-26 21:01:45 +02:00
parent 68b8be3bca
commit 576798da8e
Signed by: weeman
GPG Key ID: 34F0524D4DA694A1
3 changed files with 21 additions and 2 deletions

19
.drone.yml Normal file
View File

@ -0,0 +1,19 @@
---
# SPDX-FileCopyrightText: WTF Kooperative eG <https://wtf-eg.de/>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
kind: pipeline
type: docker
name: default
- name: docker-publish
image: plugins/docker
settings:
registry: registry.wtf-eg.net
repo: registry.wtf-eg.net/ki-frontend
target: ki-frontend
auto_tag: true
username:
from_secret: "docker_username"
password:
from_secret: "docker_password"

View File

@ -5,6 +5,6 @@ COPY . ./
RUN npm ci && npm run build
FROM nginx
FROM nginx as ki-frontend
COPY --from=builder /dist/ /usr/share/nginx/html/

View File

@ -36,7 +36,7 @@ VUE_APP_API_URL ist die Enviroment Variable mit der die Adresse der API übergeb
### Image bauen
```
docker build --tag ki_frontend .
docker build --target ki-frontend --tag ki_frontend .
```