forked from Somnia/SomniaRoomsApp
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a7bbc7db6b |
@@ -1,23 +0,0 @@
|
||||
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]
|
||||
@@ -18,11 +18,6 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
with:
|
||||
platforms: arm64
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
@@ -38,8 +33,14 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{vars.REGISTRY_INSTANCE}}/daniel-garmig/somniaroomsapp:devbuild
|
||||
tags: daniel-garmig/somniaroomsapp:devbuild
|
||||
target: final-prod
|
||||
platforms: linux/amd64,linux/arm64
|
||||
secrets: |
|
||||
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]
|
||||
|
||||
+2
-1
@@ -14,7 +14,8 @@ CMD ["npm", "run", "dev"]
|
||||
|
||||
# Build app for production.
|
||||
FROM app-base as builder
|
||||
RUN npm ci && npm run build
|
||||
RUN npm ci
|
||||
RUN npm run build
|
||||
|
||||
# production environment
|
||||
FROM nginx:stable-alpine as final-prod
|
||||
|
||||
Reference in New Issue
Block a user