Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SRCT
schedules
Commits
bd873085
Commit
bd873085
authored
Sep 20, 2018
by
Zac Wood
Browse files
updated CI
parent
ffa2d3d5
Pipeline
#2945
failed with stage
in 2 minutes and 11 seconds
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
bd873085
...
...
@@ -2,38 +2,17 @@ stages:
-
test
-
build
test
_api
:
test
:
image
:
ruby:2.5
stage
:
test
script
:
-
cd schedules
_api
-
cd schedules
-
bundle install
-
rails db:migrate
-
rails test
-
rubocop
test_web
:
image
:
node:9
stage
:
test
script
:
-
cd schedules_web
-
yarn
-
yarn build
build_web
:
stage
:
build
retry
:
2
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
mkdir -p /root/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /root/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR/schedules_web --dockerfile $CI_PROJECT_DIR/schedules_web/Dockerfile --destination $CI_REGISTRY_IMAGE/web:$CI_COMMIT_TAG
only
:
-
tags
build_api
:
build
:
stage
:
build
retry
:
2
image
:
...
...
@@ -42,6 +21,6 @@ build_api:
script
:
-
mkdir -p /root/.docker
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /root/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR/schedules
_api
--dockerfile $CI_PROJECT_DIR/schedules
_api
/Dockerfile --destination $CI_REGISTRY_IMAGE/api:$CI_COMMIT_TAG
-
/kaniko/executor --context $CI_PROJECT_DIR/schedules --dockerfile $CI_PROJECT_DIR/schedules/Dockerfile --destination $CI_REGISTRY_IMAGE/api:$CI_COMMIT_TAG
only
:
-
tags
schedules/app/controllers/home_controller.rb
View file @
bd873085
class
HomeController
<
ApplicationController
def
index
end
def
index
;
end
end
schedules/config/routes.rb
View file @
bd873085
schedules/test/controllers/home_controller_test.rb
View file @
bd873085
...
...
@@ -5,5 +5,4 @@ class HomeControllerTest < ActionDispatch::IntegrationTest
get
home_index_url
assert_response
:success
end
end
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