first iteration of serve docker

This commit is contained in:
Firq 2023-12-21 15:30:43 +01:00
parent 55a11bbb66
commit 57bd2c44c0
Signed by: Firq
GPG key ID: 4DE1059A4666E89F
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,36 @@
on:
push:
tags:
- '[0-9]+\.[0-9]+\.[0-9]+'
jobs:
build:
runs-on: dind
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: forgejo.neshweb.net
username: ${{ secrets.FORGEJO_USERNAME }}
password: ${{ secrets.FORGEJO_TOKEN }}
- name: Push to Package Registry
uses: docker/build-push-action@v5
with:
push: true
tags: forgejo.neshweb.net/firq/website-serve-docker:${{ github.ref_name }}, forgejo.neshweb.net/firq/website-serve-docker: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 }}

2
Dockerfile Normal file
View file

@ -0,0 +1,2 @@
FROM node:lts
RUN npm install --global "@warren-bank/serve"