Compare commits

..

19 Commits

Author SHA1 Message Date
75b26569b4 Revert "fix: fix pnpm directory"
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit eb80746d1b.
2025-02-27 11:34:10 +01:00
eb80746d1b fix: fix pnpm directory
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-27 11:29:55 +01:00
7847ddf979 fix: Run pnpm as root per default
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-27 11:27:39 +01:00
5adc330909 fix: PNPM not found error
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-27 11:25:02 +01:00
23d23bf213 fix: PNPM not found error
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-27 11:17:23 +01:00
a605c62e11 fix: Pnpm not found error
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-27 11:07:58 +01:00
71558f3f1d fix: Revert auto-attestation features
All checks were successful
continuous-integration/drone/push Build is passing
This cannot be done right now due to build errors in ci. Will try again at a later point in time
2025-02-24 00:19:56 +01:00
a91b4a12f6 fix: Remove argument
Some checks failed
continuous-integration/drone/push Build is failing
2025-02-24 00:09:18 +01:00
68dc85cbd6 fix: Move location argument to back
Some checks failed
continuous-integration/drone/push Build is failing
2025-02-24 00:07:07 +01:00
7743438203 fix: Pin to older drone build version using newer docker version
Some checks failed
continuous-integration/drone/push Build is failing
2025-02-24 00:02:05 +01:00
36a0d98d1c fix: Add auto label and fix auto-attestation flags
Some checks failed
continuous-integration/drone/push Build is failing
2025-02-23 19:26:11 +01:00
829293aa7c fix: Optimize drone ci builds
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-23 18:50:37 +01:00
e2d3258d40 fix: Docker build warnings
All checks were successful
continuous-integration/drone/push Build is passing
2025-02-23 18:38:56 +01:00
b031dc1ac3 feat: Second registry, security hardening
- Added second registry
- Added non-root user
- Added supply-chain attestation flags
2025-02-23 17:58:02 +01:00
fef09beaf3 feat: Add openSSL support to docker images
All checks were successful
continuous-integration/drone/push Build is passing
2024-12-16 16:37:55 +01:00
bb4c4cd34a fix: Specify Dockerfile to be run
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-22 14:06:54 +02:00
ba4a1df5b0 fix: Separate cron and push job
Some checks failed
continuous-integration/drone/push Build is failing
2024-07-22 14:03:33 +02:00
3adb125d74 feat: Add ci pipeline 2024-07-22 14:01:42 +02:00
559e29767f Add dockerfiles 2024-07-22 14:00:27 +02:00
3 changed files with 147 additions and 0 deletions

135
.drone.yml Normal file
View File

@ -0,0 +1,135 @@
---
kind: pipeline
type: docker
name: build
trigger:
event:
- push
branch:
- main
steps:
- name: build-lts
image: plugins/docker
settings:
username:
from_secret: registry_username
password:
from_secret: registry_key
repo: astrogd/pnpm
tags:
- lts-alpine
- lts
dockerfile: lts/Dockerfile
auto_label: true
- name: build-lts-astrogd
image: plugins/docker
settings:
registry: registry.astrogd.cloud
username:
from_secret: astrogd_registry_username
password:
from_secret: astrogd_registry_key
repo: registry.astrogd.cloud/pnpm
tags:
- lts-alpine
- lts
dockerfile: lts/Dockerfile
auto_label: true
- name: build-latest
image: plugins/docker
settings:
username:
from_secret: registry_username
password:
from_secret: registry_key
repo: astrogd/pnpm
tags:
- latest-alpine
- latest
dockerfile: latest/Dockerfile
auto_label: true
- name: build-latest-astrogd
image: plugins/docker
settings:
registry: registry.astrogd.cloud
username:
from_secret: astrogd_registry_username
password:
from_secret: astrogd_registry_key
repo: registry.astrogd.cloud/pnpm
tags:
- latest-alpine
- latest
dockerfile: latest/Dockerfile
auto_label: true
---
kind: pipeline
type: docker
name: cron
trigger:
event:
- cron
cron:
- daily
steps:
- name: build-lts
image: plugins/docker
settings:
username:
from_secret: registry_username
password:
from_secret: registry_key
repo: astrogd/pnpm
tags:
- lts-alpine
- lts
dockerfile: lts/Dockerfile
auto_label: true
- name: build-lts-astrogd
image: plugins/docker
settings:
registry: registry.astrogd.cloud
username:
from_secret: astrogd_registry_username
password:
from_secret: astrogd_registry_key
repo: registry.astrogd.cloud/pnpm
tags:
- lts-alpine
- lts
dockerfile: lts/Dockerfile
auto_label: true
- name: build-latest
image: plugins/docker
settings:
username:
from_secret: registry_username
password:
from_secret: registry_key
repo: astrogd/pnpm
tags:
- latest-alpine
- latest
dockerfile: latest/Dockerfile
auto_label: true
- name: build-latest-astrogd
image: plugins/docker
settings:
registry: registry.astrogd.cloud
username:
from_secret: astrogd_registry_username
password:
from_secret: astrogd_registry_key
repo: registry.astrogd.cloud/pnpm
tags:
- latest-alpine
- latest
dockerfile: latest/Dockerfile
auto_label: true
---
kind: signature
hmac: f4d6fb060e190e72258972ee1dea14e04dd4e9a82546d94071e04bce1b319d91
...

6
latest/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM node:alpine AS base
ENV PNPM_HOME="./.pnpm"
ENV PATH="/.pnpm:$PATH"
RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh - &&\
apk add --no-cache openssl
USER root

6
lts/Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM node:lts-alpine AS base
ENV PNPM_HOME="./.pnpm"
ENV PATH="/.pnpm:$PATH"
RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh - &&\
apk add --no-cache openssl
USER root