Build and files
All checks were successful
/ release (push) Successful in 7s
/ build (push) Successful in 54s

This commit is contained in:
Firq 2024-07-18 21:55:54 +02:00
parent cbff2705c2
commit 9e4f7d6128
Signed by: Firq
GPG key ID: 3ACC61C8CEC83C20
4 changed files with 42 additions and 1 deletions

View 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
View file

@ -0,0 +1 @@
.vscode/

2
Dockerfile Normal file
View file

@ -0,0 +1,2 @@
FROM node:22-alpine
RUN apk -U upgrade && apk add --no-cache git openssh

View file

@ -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