This commit is contained in:
@@ -0,0 +1,37 @@
|
|||||||
|
name: Build-LTS
|
||||||
|
run-name: ${{gitea.actor}} is building lts
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- lts/**
|
||||||
|
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: lts
|
||||||
|
file: lts/Dockerfile
|
||||||
|
pull: true
|
||||||
|
push: true
|
||||||
|
tags: registry.astrogd.cloud/pnpm:lts, registry.astrogd.cloud/pnpm:lts-alpine, astrogd/pnpm:lts, astrogd/pnpm:lts-alpine
|
||||||
Reference in New Issue
Block a user