Added build workflow
Some checks failed
GitHub Actions / build (20) (push) Waiting to run
GitHub Actions / build (22) (push) Waiting to run
GitHub Actions / check (push) Waiting to run
GitHub Actions / build (18) (push) Has been cancelled

This commit is contained in:
xeovalyte 2024-10-26 12:04:40 +02:00
parent cc36db2655
commit f03555a8f1
Signed by: xeovalyte
SSH Key Fingerprint: SHA256:kSQDrQDmKzljJzfGYcd3m9RqHi4h8rSwkZ3sQ9kBURo
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,30 @@
name: Build and Deploy
on: [push]
jobs:
Deploy:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
steps:
- uses: actions/checkout@v3
- name: Use Nodejs
uses: actions/setup-node@v3
with:
node-version: 18
- run: npm install
- run: npm run build
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- uses: docker/login-action@v2
with:
registry: gitea.xeovalyte.dev
username: ${{ secrets.USERNAME }}
password: ${{ secrets.PASSWORD }}
- run: docker buildx build -t gitea.xeovalyte.dev/xeovalyte/bijlobke:latest --load --platform=linux/amd64 .
- run: docker push gitea.xeovalyte.dev/xeovalyte/bijlobke:latest

5
src/DOCKERFILE Normal file
View File

@ -0,0 +1,5 @@
FROM httpd:2.4 AS runtime
WORKDIR /app
COPY ./dist /usr/local/apache2/htdocs/
EXPOSE 80