Compare commits

2 Commits

Author SHA1 Message Date
f7dd929bdd CI 1 2022-04-20 10:34:38 +02:00
30aba3c871 Fix favicon path & title
All checks were successful
continuous-integration/drone/push Build is passing
2022-04-19 22:08:42 +02:00
2 changed files with 54 additions and 2 deletions

52
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,52 @@
stages:
- build
- deploy
# cache using branch name
# https://gitlab.com/help/ci/caching/index.md
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules
build:blobs:
image: golang:1.17
stage: build
script:
- mkdir /blobs
- make wasm
- make build-cross-clis
- mv covergen.wasm dist /blobs
artifacts:
paths:
- /blobs
expire_in: 30 days
build:frontend:
image: node:16
stage: build
needs:
- build:blobs
before_script:
- corepack npm install --immutable
script:
- cd frontend
- mv /blobs/* public
- corepack npm run build
artifacts:
paths:
- dist/
expire_in: 30 days
deploy:
stage: deploy
image: alpine
needs:
- build:frontend
before_script:
- apk add lftp
script:
- lftp "$DEPLOY_USER_PASS@vps0.miwebb.com:/" -e "mirror -R dist/ .; quit"
environment:
name: live
url: https://covergen.miwebb.dev

View File

@@ -2,11 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" href="/favicon.ico" />
<link rel="icon" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="https://rsms.me/inter/inter.css">
<title>NVLS | Covergen</title>
<title>MiWebb | Covergen</title>
</head>
<body class="bg-gray-200">
<div id="app"></div>