add ci
This commit is contained in:
13
.dockerignore
Normal file
13
.dockerignore
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#others
|
||||||
|
node_modules
|
||||||
|
.hugo_build.lock
|
||||||
|
|
||||||
|
# OS generated files
|
||||||
|
.DS_Store
|
||||||
|
.DS_Store?
|
||||||
|
._*
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
|
||||||
|
# Hugo
|
||||||
|
public
|
||||||
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
stages:
|
||||||
|
- build
|
||||||
|
|
||||||
|
variables:
|
||||||
|
DOCKER_TLS_CERTDIR: "/certs"
|
||||||
|
|
||||||
|
build:
|
||||||
|
image: docker:24.0.5
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
- main
|
||||||
|
services:
|
||||||
|
- docker:24.0.5-dind
|
||||||
|
script:
|
||||||
|
- echo "$CI_REGISTRY_PASSWORD" | docker login registry.remo-liebmann.de:5000 -u reguser --password-stdin
|
||||||
|
- docker build -t registry.remo-liebmann.de:5000/dc-series-homepage:latest .
|
||||||
|
- docker push registry.remo-liebmann.de:5000/dc-series-homepage:latest
|
||||||
7
Dockerfile
Normal file
7
Dockerfile
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
FROM docker.io/hugomods/hugo:latest AS build
|
||||||
|
WORKDIR /src
|
||||||
|
COPY . .
|
||||||
|
RUN hugo
|
||||||
|
|
||||||
|
FROM nginx:alpine
|
||||||
|
COPY --from=build /src/public /usr/share/nginx/html
|
||||||
Reference in New Issue
Block a user