From 31b4e21034c1ec8ace76ef83b67d2655d58e768f Mon Sep 17 00:00:00 2001 From: Brain Date: Tue, 10 Sep 2024 12:27:33 +0200 Subject: [PATCH 1/2] Only run Docker dry-run on Pull Requests --- .drone.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.drone.yml b/.drone.yml index 7890f76..c6b5853 100644 --- a/.drone.yml +++ b/.drone.yml @@ -33,6 +33,9 @@ steps: repo: git.wtf-eg.de/kompetenzinventar/frontend target: ki-frontend dry_run: true + when: + event: + - pull_request --- kind: pipeline From 41f079fc03787f6055182dd4b707351a5bf9dac7 Mon Sep 17 00:00:00 2001 From: Brain Date: Tue, 10 Sep 2024 12:30:19 +0200 Subject: [PATCH 2/2] Switch to alpine image of Node.js in CI --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index c6b5853..48ee14f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -17,12 +17,12 @@ steps: - name: reuse image: fsfe/reuse:4.0.3-debian@sha256:20e70745bf4aa1d37f4ac054f4df045e4f7df7f4ec95d7abd2e263aa1323f399 - name: lint - image: node:20.17.0@sha256:48db4f6ea21d134be744207225753a1730c4bc1b4cdf836d44511c36bf0e34d7 + image: node:20.17.0-alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 commands: - npm ci - npm run lint -- --no-fix - name: audit - image: node:20.17.0@sha256:48db4f6ea21d134be744207225753a1730c4bc1b4cdf836d44511c36bf0e34d7 + image: node:20.17.0-alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 commands: - npm install -g better-npm-audit - better-npm-audit audit --production --level=moderate @@ -104,7 +104,7 @@ steps: - name: reuse image: fsfe/reuse:4.0.3-debian@sha256:20e70745bf4aa1d37f4ac054f4df045e4f7df7f4ec95d7abd2e263aa1323f399 - name: lint - image: node:20.17.0@sha256:48db4f6ea21d134be744207225753a1730c4bc1b4cdf836d44511c36bf0e34d7 + image: node:20.17.0-alpine@sha256:2d07db07a2df6830718ae2a47db6fedce6745f5bcd174c398f2acdda90a11c03 commands: - npm ci - npm run lint -- --no-fix