You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to build a workflow based on the sample file bellow
Use environment variables instead of plaintext passwords (under project settings)
Try to implement https://codecov.io/ after your test run (the ciTest command will generate the data you need)
Optional: Try to add a valid kubernetes deployment file for the app. it should expose the docker port 9000 to an ingress on port 80.
2. Reimplement it with Jenkins (optional)
Create a docker instance with jenkins and install the blue origin template
Try to reimplement the build with a JENKINSFILE
Template for Workflow in Step 7
# Sampleversion: 2jobs:
test:
docker:
- image: innfactory/gcloud-scala-ci:latest
- image: circleci/postgres:9.6-alpineenvironment:
POSTGRES_USER: userPOSTGRES_DB: buildPOSTGRES_PASSWORD: passwordworking_directory: ~/repoenvironment:
JVM_OPTS: -Xmx3200mTERM: dumbDATABASE_PORT: 5432DATABASE_USER: userDATABASE_PASSWORD: passwordsteps:
- ## do a checkout here
- run:
name: "test with sbt"command: | ( for i in `seq 1 10`; do nc -z localhost $DATABASE_PORT && echo Success && exit 0 echo -n . sleep 1 done echo Failed waiting for Postgres && exit 1 ) ## run your test with sbt ciTestbuild:
docker:
- image: innfactory/gcloud-scala-ci:latest
- image: circleci/postgres:9.6-alpineenvironment:
POSTGRES_USER: userPOSTGRES_DB: buildPOSTGRES_PASSWORD: passwordworking_directory: ~/repoenvironment:
JVM_OPTS: -Xmx3200mTERM: dumbDATABASE_PORT: 5432DATABASE_USER: userDATABASE_PASSWORD: passwordsteps:
- ## checkout
- ## setup a remote docker env with version: 17.09.0-ce
- ## build your app with sbt flyway/flywayMigrate and sbt -Dbranch=$CIRCLE_BRANCH -Dversion=$CIRCLE_SHA1 docker:publishdeploy:
# write a deployment file for kubernetes and store it under .circle. Just echo it here, because you have no kubernetes available here. workflows:
version: 2# build a workflow - test - build - deploy # try to optimize the build with caching.