Compare commits

..
Author SHA1 Message Date
Daniel-Garmig 7898fdd516 Merge branch 'tests' of ssh://gitea.uberelectronnetwork.cc:2222/Daniel-Garmig/SomniaRoomsApp into tests
Publish_on_Tag / Build and Push (push) Successful in 2m52s
2024-05-12 03:49:39 +02:00
Daniel-Garmig 8c9d228c99 test env 2024-05-12 03:47:52 +02:00
Daniel-Garmig 35bed5a75d Update .gitea/workflows/ci.yaml 2024-05-12 02:26:01 +02:00
Daniel-Garmig 7b562cc17f xxx 2024-05-12 02:25:17 +02:00
Daniel-Garmig 3aa15039cb Test commit II 2024-05-12 02:24:22 +02:00
Daniel-Garmig 69422c2c72 Test commit. 2024-05-12 02:23:10 +02:00
Daniel-Garmig 159ee1b004 Gitea Actions Support - Part 2 2024-05-12 02:21:05 +02:00
Daniel-Garmig e7ac0e8af6 Fix dockerfile for Docker Lint action. 2024-05-12 02:16:21 +02:00
Daniel-Garmig 5278d65e50 Add Gitea Actions Support:
Publish_on_Tag / Build and Push (push) Has been cancelled
Publish_on_Tag / Docker Lint (push) Has been cancelled
- Build and publish on tag.
2024-05-12 02:04:24 +02:00
5 changed files with 34 additions and 15 deletions
+2 -2
View File
@@ -1,3 +1,3 @@
# App config Variables (Will be visible by client): # App config Variables (Will be visible by client):
VITE_BACKEND_HOST=https://somniaapi.example.org/ VITE_BACKEND_HOST=${SOMNIA_BACKEND_HOST:-https://somniaapi.example.org/}
VITE_BACKEND_PORT=443 VITE_BACKEND_PORT=${SOMNIA_BACKEND_PORT:-443}
+23
View File
@@ -0,0 +1,23 @@
name: CI
on:
push:
branches:
- main
pull_request: ~
workflow_dispatch: ~
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
lint:
name: Docker Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint Dockerfile
uses: hadolint/[email protected]
+7 -10
View File
@@ -18,6 +18,11 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
@@ -33,16 +38,8 @@ jobs:
with: with:
context: . context: .
push: true push: true
tags: daniel-garmig/somniaroomsapp:devbuild tags: ${{vars.REGISTRY_INSTANCE}}/daniel-garmig/somniaroomsapp:devbuild
target: final-prod target: final-prod
platforms: linux/amd64,linux/arm64
secrets: | secrets: |
GIT_AUTH_TOKEN=${{secrets.REGISTRY_TOKEN}} GIT_AUTH_TOKEN=${{secrets.REGISTRY_TOKEN}}
lint:
name: Docker Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint Dockerfile
uses: hadolint/[email protected]
+1 -2
View File
@@ -14,8 +14,7 @@ CMD ["npm", "run", "dev"]
# Build app for production. # Build app for production.
FROM app-base as builder FROM app-base as builder
RUN npm ci RUN npm ci && npm run build
RUN npm run build
# production environment # production environment
FROM nginx:stable-alpine as final-prod FROM nginx:stable-alpine as final-prod
+1 -1
View File
@@ -30,4 +30,4 @@ docker build -t somniarooms-app:prod --target final-prod .
**Docker Run** **Docker Run**
``` ```
docker run -d -it -p 8080:80 --name somniarooms-app somniarooms-app:prod docker run -d -it -p 8080:80 --name somniarooms-app somniarooms-app:prod
``` ```