From 020663cca98106791861e0694996f5d7de144054 Mon Sep 17 00:00:00 2001 From: garionion Date: Sun, 2 Mar 2025 11:47:10 +0100 Subject: [PATCH] refactor: Update Woodpecker CI config and StorageHierarchy component --- .woodpecker.yml | 19 +++++++++++++++--- web/src/components/StorageHierarchy.vue | 26 ++++++++++++------------- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 3a02eba..f37bb18 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,6 +1,9 @@ -pipeline: +variables: + - &golang_image 'golang:1.24' + +steps: backend-lint: - image: golang:1.21 + image: *golang_image group: lint commands: - go vet ./... @@ -20,16 +23,21 @@ pipeline: - cd web - npm ci - npm run build + depends_on: + - frontend-lint when: status: [success] backend-build: - image: golang:1.21 + image: *golang_image commands: - go mod download - go generate ./... # Build with embedded frontend - go build -o inventory -ldflags="-s -w" . + depends_on: + - frontend-build + - backend-lint when: status: [success] @@ -40,6 +48,8 @@ pipeline: - mkdir -p artifacts - cp inventory artifacts/ - tar -czvf artifacts/inventory.tar.gz inventory + depends_on: + - backend-build when: status: [success] @@ -52,6 +62,9 @@ pipeline: - latest - ${DRONE_TAG##v} dockerfile: Dockerfile + depends_on: + - backend-lint + - frontend-lint when: branch: main event: [push, tag] diff --git a/web/src/components/StorageHierarchy.vue b/web/src/components/StorageHierarchy.vue index e6d0d31..cf3923d 100644 --- a/web/src/components/StorageHierarchy.vue +++ b/web/src/components/StorageHierarchy.vue @@ -7,7 +7,7 @@ - + {{ error }} - +
- +