Last active
February 13, 2019 14:52
-
-
Save akira345/c072d8e2db9566a814d85b0276ad2678 to your computer and use it in GitHub Desktop.
GitLab+GitLabCIでRe:ViewをコミットするとDropBoxにアップロードする設定ファイル
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Setting for job sequence. | |
# List up for job groups. | |
stages: | |
- 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