Build and files
This commit is contained in:
parent
cbff2705c2
commit
9e4f7d6128
4 changed files with 42 additions and 1 deletions
36
.forgejo/workflows/build_release.yml
Normal file
36
.forgejo/workflows/build_release.yml
Normal file
|
@ -0,0 +1,36 @@
|
|||
on:
|
||||
push:
|
||||
tags:
|
||||
- '[0-9]+'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: dind
|
||||
steps:
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Log into Docker Package Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: forgejo.neshweb.net
|
||||
username: ${{ secrets.FORGEJO_USERNAME }}
|
||||
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||
- name: Build and push to Docker Package Registry
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
tags: forgejo.neshweb.net/ci-docker-images/node-alpine-git:${{ github.ref_name }}, forgejo.neshweb.net/ci-docker-images/node-alpine-git:latest
|
||||
|
||||
release:
|
||||
needs: [ build ]
|
||||
if: success()
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Release New Version
|
||||
uses: actions/forgejo-release@v1
|
||||
with:
|
||||
direction: upload
|
||||
url: https://forgejo.neshweb.net
|
||||
release-dir: release
|
||||
token: ${{ secrets.FORGEJO_TOKEN }}
|
||||
tag: ${{ github.ref_name }}
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.vscode/
|
2
Dockerfile
Normal file
2
Dockerfile
Normal file
|
@ -0,0 +1,2 @@
|
|||
FROM node:22-alpine
|
||||
RUN apk -U upgrade && apk add --no-cache git openssh
|
|
@ -1,3 +1,5 @@
|
|||
# node-alpine-git
|
||||
|
||||
Node Alpine image with git and openssh added
|
||||
Lightweight node image with git added
|
||||
|
||||
Based on `node:22-alpine`, more versions to come
|
||||
|
|
Loading…
Reference in a new issue