Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cspp-geo-gridded-glm
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Analyze
Value stream analytics
Contributor 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
cspp_geo
cspp-geo-gridded-glm
Commits
f72b5693
Commit
f72b5693
authored
2 years ago
by
Nick Bearson
Browse files
Options
Downloads
Plain Diff
Merge branch 'ci-test-prep' into 'master'
CI test prep See merge request
!21
parents
e1e41bb7
5f1a40b9
Loading
Loading
1 merge request
!21
CI test prep
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+30
-2
30 additions, 2 deletions
.gitlab-ci.yml
with
30 additions
and
2 deletions
.gitlab-ci.yml
+
30
−
2
View file @
f72b5693
...
...
@@ -10,7 +10,6 @@ variables:
stages
:
-
buildbucket_build
-
gridded_glm_build
-
gridded_glm_tester_build
-
test
-
release
...
...
@@ -38,13 +37,42 @@ create the Gridded GLM package:
# Creates the gridded GLM package
-
docker run --rm -v "${PWD}":/dock -v $PWD:/work/cspp-geo-gridded-glm $BUILDBUCKET_IMAGE:$CI_COMMIT_SHORT_SHA ./package.sh $CI_COMMIT_SHORT_SHA
# Create a simple Docker image with the gridded GLM package included
#
TODO: this should probably b
e i
t
s
own stage?
#
(the below Dockerfil
e is
created by ./package.sh)
-
docker build . -f Dockerfile -t $GRIDDED_GLM_IMAGE:$CI_COMMIT_SHORT_SHA
-
docker push $GRIDDED_GLM_IMAGE:$CI_COMMIT_SHORT_SHA
# worry about this later; rsync isn't available in busybox. we probably need some refactoring to use a build image more directly & upload from there.
# # upload the package to /apollo/ via a limited-use key on espresso
# - rsync -auv -e "ssh -T -o StrictHostKeyChecking=no -o IdentitiesOnly=yes -o ForwardAgent=no -i $NICKB_UPLOAD_KEY" cspp-geo-gridded-glm-$CI_COMMIT_SHORT_SHA.tar.xz nickb@espresso:/apollo/csppgeo/packages/gridded-glm/ci/cspp-geo-gridded-glm-$CI_COMMIT_SHORT_SHA.tar.xz
run tests
:
stage
:
test
image
:
$GRIDDED_GLM_IMAGE:$CI_COMMIT_SHORT_SHA
tags
:
-
docker
script
:
# $CSPP_GEO_GGLM_HOME is set in
-
$CSPP_GEO_GGLM_HOME/bin/cspp-geo-gglm.sh --help
# smoke test
push our images with version tags
:
stage
:
release
image
:
docker:19.03.1
tags
:
-
docker
services
:
-
docker:19.03.1-dind
rules
:
-
if
:
'
$CI_COMMIT_TAG'
script
:
-
docker login --username $CI_REGISTRY_USER --password $CI_REGISTRY_PASSWORD $CI_REGISTRY
# buildbucket
-
docker pull $BUILDBUCKET_IMAGE:$CI_COMMIT_SHORT_SHA
-
if [ $CI_COMMIT_TAG != '' ]; then docker tag $BUILDBUCKET_IMAGE:$CI_COMMIT_SHORT_SHA $BUILDBUCKET_IMAGE:$CI_COMMIT_TAG; fi
-
if [ $CI_COMMIT_TAG != '' ]; then docker push $BUILDBUCKET_IMAGE:$CI_COMMIT_TAG; fi
# gridded_glm
-
docker pull $GRIDDED_GLM_IMAGE:$CI_COMMIT_SHORT_SHA
-
if [ $CI_COMMIT_TAG != '' ]; then docker tag $GRIDDED_GLM_IMAGE:$CI_COMMIT_SHORT_SHA $GRIDDED_GLM_IMAGE:$CI_COMMIT_TAG; fi
-
if [ $CI_COMMIT_TAG != '' ]; then docker push $GRIDDED_GLM_IMAGE:$CI_COMMIT_TAG; fi
push our images as latest tags
:
stage
:
release
image
:
docker:19.03.1
...
...
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