Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
experiments
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simen Fritsvold
experiments
Commits
c0d15600
Commit
c0d15600
authored
10 months ago
by
Simen Fritsvold
Browse files
Options
Downloads
Patches
Plain Diff
nytt forsok
parent
d8196048
No related branches found
No related tags found
No related merge requests found
Pipeline
#292062
failed
10 months ago
Stage: build
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+12
-38
12 additions, 38 deletions
.gitlab-ci.yml
.gitlab2-ci.yml
+45
-0
45 additions, 0 deletions
.gitlab2-ci.yml
with
57 additions
and
38 deletions
.gitlab-ci.yml
+
12
−
38
View file @
c0d15600
stages
:
-
test
-
deploy
image
:
docker:24.0.5
default
:
image
:
node:20.16.0
cache
:
paths
:
-
node_modules/
prettier-test-job
:
stage
:
test
script
:
-
npm run check
deploy-job
:
stage
:
deploy
environment
:
production
image
:
docker:latest
services
:
-
docker:dind
-
docker:
24.0.5-
dind
variables
:
DOCKER_HOST
:
unix:///var/run/docker.sock
DOCKER_DRIVER
:
overlay2
DOCKER_IMAGE_NAME
:
$DOCKER_USERNAME/experiments
before_script
:
-
mkdir /etc/gitlab-runner/
-
mv config.toml /etc/gitlab-runner/
-
mkdir ~/.docker
-
echo $DOCKER_AUTH_CONFIG | base64 -d > ~/.docker/config.json
-
until docker info; do sleep 1; done;
build-master
:
stage
:
build
script
:
-
docker build -t $DOCKER_IMAGE_NAME:latest .
-
docker build
--pull
-t $DOCKER_IMAGE_NAME:latest .
-
docker push $DOCKER_IMAGE_NAME:latest
retry
:
max
:
2
when
:
-
runner_system_failure
-
stuck_or_timeout_failure
This diff is collapsed.
Click to expand it.
.gitlab2-ci.yml
0 → 100644
+
45
−
0
View file @
c0d15600
stages
:
-
test
-
deploy
default
:
image
:
node:20.16.0
cache
:
paths
:
-
node_modules/
prettier-test-job
:
stage
:
test
script
:
-
npm run check
deploy-job
:
stage
:
deploy
environment
:
production
image
:
docker:latest
services
:
-
docker:dind
variables
:
DOCKER_HOST
:
unix:///var/run/docker.sock
DOCKER_DRIVER
:
overlay2
DOCKER_IMAGE_NAME
:
$DOCKER_USERNAME/experiments
before_script
:
-
mkdir /etc/gitlab-runner/
-
mv config.toml /etc/gitlab-runner/
-
mkdir ~/.docker
-
echo $DOCKER_AUTH_CONFIG | base64 -d > ~/.docker/config.json
-
until docker info; do sleep 1; done;
script
:
-
docker build -t $DOCKER_IMAGE_NAME:latest .
-
docker push $DOCKER_IMAGE_NAME:latest
retry
:
max
:
2
when
:
-
runner_system_failure
-
stuck_or_timeout_failure
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment