Compare commits

...

7 commits
0.1.0 ... main

Author SHA1 Message Date
a2d9e8a83b Merge pull request 'Bump forgejo-release to v2' (#1) from actions-update into main
Reviewed-on: https://forgejo.neshweb.net///CI-Docker-Images/website-serve/pulls/1
2024-08-06 12:26:43 +00:00
dd005dda7d Bump forgejo-release to v2 2024-08-06 12:26:28 +00:00
fda5e65d4e
Switched to alpine and changed versioning
All checks were successful
/ build (push) Successful in 51s
/ release (push) Successful in 49s
2024-07-16 20:16:45 +02:00
c88dffcbee
Bumped warren-bank/serve to newest version for security reasons
All checks were successful
/ release (push) Successful in 7s
/ build (push) Successful in 1m24s
2024-06-20 18:34:12 +02:00
b05388db50
Updated workflow
All checks were successful
/ release (push) Successful in 8s
/ build (push) Successful in 1m48s
2023-12-29 13:06:40 +01:00
ac865efa95
Updated README 2023-12-29 13:05:18 +01:00
b104a7f09e
Fixed CI for migration to group
All checks were successful
/ build (push) Successful in 2m7s
/ release (push) Successful in 18s
2023-12-28 16:09:49 +01:00
4 changed files with 23 additions and 6 deletions

View file

@ -1,7 +1,7 @@
on: on:
push: push:
tags: tags:
- '[0-9]+\.[0-9]+\.[0-9]+' - '[0-9]+'
jobs: jobs:
build: build:
@ -19,7 +19,7 @@ jobs:
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
push: true push: true
tags: forgejo.neshweb.net/firq/website-serve-docker:${{ github.ref_name }}, forgejo.neshweb.net/firq/website-serve-docker:latest tags: forgejo.neshweb.net/ci-docker-images/website-serve:${{ github.ref_name }}, forgejo.neshweb.net/ci-docker-images/website-serve:latest
release: release:
needs: [build] needs: [build]
@ -27,7 +27,7 @@ jobs:
runs-on: docker runs-on: docker
steps: steps:
- name: Release New Version - name: Release New Version
uses: actions/forgejo-release@v1 uses: actions/forgejo-release@v2
with: with:
direction: upload direction: upload
url: https://forgejo.neshweb.net url: https://forgejo.neshweb.net

1
.gitignore vendored Normal file
View file

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

View file

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

View file

@ -1 +1,17 @@
# Placeholder # website-serve Docker Image
This is a simple `node:22-alpine` based Docker Image with the `serve` fork of `@warren-bank` already preinstalled.
It can be used to serve static files like websites.
## Usage
To use the `serve` process, run the following `CMD` at the end of your own docker image:
```dockerfile
CMD [ "serve", DIRECTORY, "-p", PORT ]
```
Replace the values for `DIRECTORY` and `PORT` accordingly.
It is recommended to include a `serve.json` file inside the `DIRECTORY`. <br/>
The syntax for this can be found [here](https://github.com/warren-bank/node-serve/tree/master/lib/serve-handler)