Commit eb841df5 authored by Ganesh Katrapati's avatar Ganesh Katrapati
Browse files

Add new file

parent 82302f1f
Pipeline #38243 passed with stages
in 1 minute and 20 seconds
# Example config for CI/CD between Heroku and Gitlab by </unchained
# Docker image container name to be used for all jobs.
# You can also redefine this for each job.
# List of different containers can be found here: https://hub.docker.com
image: openjdk:8-jdk
# Specify files and folder to be shared between all jobs
# More information to be found here: https://docs.gitlab.com/ce/ci/yaml/README.html#cache
cache:
paths:
- node_modules/
# Define stages to be used by all jobs in certain order
# More information to be found here: https://docs.gitlab.com/ce/ci/yaml/README.html#stages
stages:
- build
- deploy
# Define job to build your application
# More information to be found here: https://docs.gitlab.com/ce/ci/yaml/README.html#jobs
build:
type: build
script:
- echo "Hello"
# save files after build to be used for deployment
artifacts:
name: "${CI_JOB_NAME}_${CI_COMMIT_REF_NAME}"
expire_in: 2 weeks
# define branches and tags for which the job will run
only:
- master
- staging
- production
# Define job to deploy your application to development environment
# More information to be found here: https://docs.gitlab.com/ce/ci/yaml/README.html#jobs
deploy_development:
type: deploy
dependencies:
- build
# Define environment to keep track of what versions you deployed to different environments
environment:
name: development
# Define URL address of your environment
# Don't forget to define $APP_DOMAIN variable under Settings > CI/CD > Secret Variables on GitLab
url: https://development.$APP_DOMAIN
script:
- apt-get update -qy
- apt-get install -y ruby ruby-dev rubygems-integration
- gem install dpl
# Don't forget to define $HEROKU_DEVELOPMENT_APP and $HEROKU_DEVELOPMENT_API_KEY
# variables under Settings > CI/CD > Secret Variables on GitLab
- dpl --provider=heroku --app=moviesearch-omdb --api-key=8ef2917c-af81-4b73-8767-04e7c416c2c3 --skip-cleanup
only:
- master
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment