Add CI pipeline
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
This commit is contained in:
parent
71c14cae9d
commit
6b85cad54b
2 changed files with 27 additions and 0 deletions
24
.gitlab-ci.yml
Normal file
24
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
stages:
|
||||||
|
- Build
|
||||||
|
- Image
|
||||||
|
|
||||||
|
Build:
|
||||||
|
image: registry.gitlab.com/severinkaderli/firu:master
|
||||||
|
stage: Build
|
||||||
|
script:
|
||||||
|
- firu
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- .output/
|
||||||
|
|
||||||
|
Image:
|
||||||
|
image: docker:19.03.8
|
||||||
|
stage: Image
|
||||||
|
services:
|
||||||
|
- docker:19.03.8-dind
|
||||||
|
variables:
|
||||||
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
|
script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
- docker build -t $IMAGE_TAG .
|
||||||
|
- docker push $IMAGE_TAG
|
3
Dockerfile
Normal file
3
Dockerfile
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
FROM registry.gitlab.com/severinkaderli/nginx-docker:master
|
||||||
|
COPY ./output /usr/share/nginx/html
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue