From 61a6115071e7199653eaf6d094794826e1a35db4 Mon Sep 17 00:00:00 2001 From: Brain Date: Wed, 21 Aug 2024 19:33:50 +0200 Subject: [PATCH] Pin Docker images in CI --- .drone.yml | 16 ++++++++-------- Dockerfile | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3875abc..2251b6a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -15,14 +15,14 @@ trigger: steps: - name: reuse - image: fsfe/reuse + image: fsfe/reuse:3.0.2-debian - name: lint - image: node:20 + image: node:20.12.2 commands: - npm ci - npm run lint - name: audit - image: node:20 + image: node:20.12.2 commands: - npm install -g better-npm-audit - better-npm-audit audit --production --level=moderate @@ -43,7 +43,7 @@ depends_on: steps: - name: docker-publish - image: plugins/docker + image: plugins/docker:20.17.3 settings: registry: git.wtf-eg.de repo: git.wtf-eg.de/kompetenzinventar/frontend @@ -70,7 +70,7 @@ depends_on: steps: - name: deploy-dev - image: appleboy/drone-ssh + image: appleboy/drone-ssh:1.7.5 settings: host: - dev01.wtf-eg.net @@ -92,14 +92,14 @@ trigger: steps: - name: reuse - image: fsfe/reuse + image: fsfe/reuse:3.0.2-debian - name: lint - image: node:20 + image: node:20.12.2 commands: - npm ci - npm run lint - name: docker-publish - image: plugins/docker + image: plugins/docker:20.17.3 settings: registry: git.wtf-eg.de repo: git.wtf-eg.de/kompetenzinventar/frontend diff --git a/Dockerfile b/Dockerfile index f724768..9575315 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,14 +2,14 @@ # # SPDX-License-Identifier: AGPL-3.0-or-later -FROM node:20-alpine as builder +FROM node:20.12.2-alpine as builder COPY . ./ RUN npm ci && npm run build -FROM nginx as ki-frontend +FROM nginx:1.24-alpine as ki-frontend COPY --from=builder /dist/ /usr/share/nginx/html/ COPY etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf diff --git a/package-lock.json b/package-lock.json index 3c12495..08fb72b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@wtf/ki-frontend", - "version": "0.1.0", + "version": "1.1.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@wtf/ki-frontend", - "version": "0.1.0", + "version": "1.1.0", "devDependencies": { "@babel/eslint-parser": "7.23.10", "@vue/cli-plugin-babel": "~5.0.8", diff --git a/package.json b/package.json index 794413d..8a3df35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wtf/ki-frontend", - "version": "0.1.0", + "version": "1.1.0", "scripts": { "serve": "vue-cli-service serve", "build": "vue-cli-service build",