feature/improve-drone-config #2637
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
3 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#2637
Loading…
Reference in New Issue
No description provided.
Delete Branch "dpschen/frontend:feature/improve-drone-config"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some possible improvements / fixes of our drone config.
I'm not 100% sure with everything but explained respectively why I changed the values.
Hi dpschen!
Thank you for creating a PR!
I've deployed the changes of this PR on a preview environment under this URL: https://2637-feature-improve-drone-config--vikunja-frontend-preview.netlify.app
You can use this url to view the changes live and test them out.
You will need to manually connect this to an api running somehwere. The easiest to use is https://try.vikunja.io/.
Have a nice day!
WIP: feature/improve-drone-configto feature/improve-drone-config@ -376,4 +378,2 @@
ref:
- refs/heads/main
depends_on:
- clone
We do not have a
clone
step.We do. Drone always creates a
clone
step if no other is specified.In this case here though the
depends_on
is redundant because the step is the first one (right after theclone
step).Makes still sense to keep it here then, to make it explicit.
@ -198,4 +200,2 @@
- name: build
image: node:18-alpine
pull: true
group: build-static
A
group
property doesn't seem to exist in drone.That's probably a relic from Drone 1
@ -1,5 +1,6 @@
---
kind: pipeline
type: docker
Is
docker
the default? I was unsure here, but my drone linter in vscode told me that not declaring a type is also wrong.Docker is the default, yes.
@ -42,3 +43,3 @@
- name: dependencies
image: node:18-alpine
pull: true
pull: always
I forgot (and couldn't find out) if
always
is the default value either way. If so we could also remove thepull
property.Do you know where to find the default config of drone?
There's a reference somewhere.
I think for this particular case this is the relevant part of the docs: https://docs.drone.io/pipeline/kubernetes/syntax/images/#pulling-images
Yes, sadly they don't mention the default setting.
But they say:
Ahh, and ours are tagged with latest, so it will pull the latest anyway?
This particular one has a tag of
18-alpine
so it won't pull it always.@ -204,3 +205,3 @@
commands:
- apk add git
- corepack enable && pnpm config set store-dir .cache/.pnp
- corepack enable && pnpm config set store-dir .cache/.pnpm
This cache folder was wrong. Maybe this decreases our build time?
@ -415,4 +413,2 @@
ref:
- refs/heads/main
depends_on:
- clone
This one is required though, otherwise all steps will be processed sequentially.
Is
clone
a hidden step? The reason I deleted is that I couldn't find the step? Or what does it refer to? The drone API reference is not really good here :/Ahh just saw the comment above!
@ -435,4 +431,2 @@
ref:
- "refs/tags/**"
depends_on:
- clone
This one is required as well.
Can you re-add the required
depends_on
for the clone steps?Does our Drone support Jsonnet?
Would be cool for the releases.
f79fd1df94
to612ef96dec
Our instance supports it. How would jsonnet help with releases?
See https://docs.drone.io/pipeline/docker/examples/languages/rust/#test-multiple-versions
Makes sense. I think that's something we could do in a different PR though.
Yes, just wanted to mention it here, while we are on it :)
60aac3ea25
tof82558c717
f82558c717
tod5efe9f656