Compare commits

...

3 Commits

Author SHA1 Message Date
AstroGD 1e931a0f84 feat: Add latest gitea workflow
Build-Latest / build-lts (push) Successful in 1m26s
Build-LTS / build-lts (push) Successful in 1m28s
2026-05-12 14:49:08 +02:00
AstroGD 4ec9bb37d7 chore: Remove legacy drone workflow 2026-05-12 14:48:46 +02:00
AstroGD 9179457d00 fix: correctly set path for pnpm binary 2026-05-12 14:48:06 +02:00
4 changed files with 40 additions and 137 deletions
-135
View File
@@ -1,135 +0,0 @@
---
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
...
+38
View File
@@ -0,0 +1,38 @@
name: Build-Latest
run-name: ${{gitea.actor}} is building latest
on:
push:
paths:
- latest/**
- .gitea/workflows/latest.yml
schedule:
- cron: "0 0 * * *"
jobs:
build-lts:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to internal registry
uses: docker/login-action@v3
with:
registry: registry.astrogd.cloud
username: ${{ secrets.REGISTRY_INTERNAL_USERNAME }}
password: ${{ secrets.REGISTRY_INTERNAL_PASSWORD }}
- name: Login to dockerhub registry
uses: docker/login-action@v3
with:
registry: docker.io
username: ${{ secrets.REGISTRY_DOCKERHUB_USERNAME }}
password: ${{ secrets.REGISTRY_DOCKERHUB_PASSWORD }}
- name: Build and push image
uses: docker/build-push-action@v7
with:
context: latest
file: latest/Dockerfile
pull: true
push: true
tags: registry.astrogd.cloud/pnpm:latest, registry.astrogd.cloud/pnpm:latest-alpine, astrogd/pnpm:latest, astrogd/pnpm:latest-alpine
+1 -1
View File
@@ -1,6 +1,6 @@
FROM node:alpine AS base
ENV PNPM_HOME="./.pnpm"
ENV PATH="/.pnpm:$PATH"
ENV PATH="/.pnpm/bin:$PATH"
RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh - &&\
apk add --no-cache openssl
USER root
+1 -1
View File
@@ -1,6 +1,6 @@
FROM node:lts-alpine AS base
ENV PNPM_HOME="./.pnpm"
ENV PATH="/.pnpm:$PATH"
ENV PATH="/.pnpm/bin:$PATH"
RUN wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh - &&\
apk add --no-cache openssl
USER root