From 576798da8eb0a141212622ad68b19d1d78588ef3 Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Mon, 26 Jul 2021 21:01:45 +0200 Subject: [PATCH] add drone docker image build --- .drone.yml | 19 +++++++++++++++++++ Dockerfile | 2 +- README.md | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..170464e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,19 @@ +--- +# SPDX-FileCopyrightText: WTF Kooperative eG +# +# 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" diff --git a/Dockerfile b/Dockerfile index 4af6fa0..32033ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/ diff --git a/README.md b/README.md index 40a6d21..ca81445 100644 --- a/README.md +++ b/README.md @@ -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 . ```