Compare commits
3 Commits
ef22be50ea
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
1e931a0f84
|
|||
|
4ec9bb37d7
|
|||
|
9179457d00
|
-135
@@ -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
|
||||
|
||||
...
|
||||
@@ -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
@@ -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
@@ -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
|
||||
Reference in New Issue
Block a user