From f03555a8f187475fbda1d97ee2df904fdc9607f4 Mon Sep 17 00:00:00 2001 From: xeovalyte Date: Sat, 26 Oct 2024 12:04:40 +0200 Subject: [PATCH] Added build workflow --- src/.gitea/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ src/DOCKERFILE | 5 +++++ 2 files changed, 35 insertions(+) create mode 100644 src/.gitea/workflows/deploy.yml create mode 100644 src/DOCKERFILE diff --git a/src/.gitea/workflows/deploy.yml b/src/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..997b909 --- /dev/null +++ b/src/.gitea/workflows/deploy.yml @@ -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 diff --git a/src/DOCKERFILE b/src/DOCKERFILE new file mode 100644 index 0000000..0d7d0a4 --- /dev/null +++ b/src/DOCKERFILE @@ -0,0 +1,5 @@ +FROM httpd:2.4 AS runtime +WORKDIR /app + +COPY ./dist /usr/local/apache2/htdocs/ +EXPOSE 80