Skip to content

Instantly share code, notes, and snippets.

@akira345
Last active February 13, 2019 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akira345/c072d8e2db9566a814d85b0276ad2678 to your computer and use it in GitHub Desktop.
Save akira345/c072d8e2db9566a814d85b0276ad2678 to your computer and use it in GitHub Desktop.
GitLab+GitLabCIでRe:ViewをコミットするとDropBoxにアップロードする設定ファイル
# Setting for job sequence.
# List up for job groups.
stages:
- pdf
- upload
# Jobs
pdf:
# Setting for Docker image
image: docker:latest
# Services is required for use networking services.
# ex)MySQL、PostgreSQL、etc...
# See:https://docs.gitlab.com/ce/ci/docker/using_docker_images.html#what-is-a-service
# Using Docker daemon.
services:
- docker:dind
# Set job group name.
stage: pdf
# Run scripts
script:
- docker run --rm -v "$PWD:/work" kauplan/review2.5 /bin/bash -c "cd /work; rake pdf && rake pdf:nombre"
# Designation of deliverables.
artifacts:
paths:
- ./My_Book.pdf
upload:
image: ubuntu:latest
stage: upload
script:
- apt-get update && apt-get -y upgrade && apt-get -y install git curl
- chmod +x ./upload_dropbox.sh
- ./upload_dropbox.sh ./My_Book.pdf ${DROPBOX_TOKEN}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment