Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
osufrlive
obs-sync
Commits
c203b418
Commit
c203b418
authored
Dec 31, 2019
by
Hugo "ThePooN" Denizart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
👷
Add GitLab CI
parent
bd501197
Pipeline
#3200
canceled with stages
in 1 minute and 5 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
0 deletions
+41
-0
.gitlab-ci.yml
.gitlab-ci.yml
+41
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
c203b418
image
:
node:alpine
stages
:
-
test
-
docker
cache
:
paths
:
-
node_modules/
variables
:
CONTAINER_TEST_IMAGE
:
git.cartooncraft.fr/osufrlive/obs-sync:$CI_BUILD_REF_NAME
CONTAINER_RELEASE_IMAGE
:
git.cartooncraft.fr/osufrlive/obs-sync:latest
lint
:
stage
:
test
script
:
-
apk add git
-
npm i
-
npm run lint
typescript build
:
stage
:
test
script
:
-
apk add git
-
npm i
-
npm run build
docker build
:
image
:
docker:stable
stage
:
docker
services
:
-
docker:dind
tags
:
-
docker-build
script
:
-
docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN git.cartooncraft.fr
-
docker build --pull -t $CONTAINER_TEST_IMAGE .
-
docker push $CONTAINER_TEST_IMAGE
# Tag as latest if on master
-
sh -c "if [ $CI_BUILD_REF_NAME == "master" ]; then docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE && docker push $CONTAINER_RELEASE_IMAGE; fi"
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment