Skip to content
Snippets Groups Projects
Commit 19ee748e authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

add ci config

parent d89b169d
Branches
Tags
No related merge requests found
Pipeline #8020 failed
include:
- project: kszk/ci
ref: 0.2.0
file:
- /template/docker-build.yaml
- /template/ssh-deploy.yaml
stages:
- build
- docker
- deploy
compile:
stage: build
tags: [docker]
image: trion/ng-cli
script:
- ng build --prod
artifacts:
expire_in: 1 day
paths:
- dist/
dockerhub:
extends: .docker-build-dockerhub
stage: docker
tags: [docker]
only:
- tags
- master
variables:
IMAGE_NAME: rlacko58/kszk-status-angular
IMAGE_TAG: $CI_COMMIT_SHORT_SHA
FROM nginx:1.19.10
COPY nginx.conf /etc/nginx/nginx.conf
COPY /dist/kszk-status-angular /usr/share/nginx/html
events{}
http {
include /etc/nginx/mime.types;
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment