Skip to content

Minimal docker image to convert markdown files to Google Drive

License

Notifications You must be signed in to change notification settings

MatsuriJapon/md2drive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

A small convenience docker image for converting Markdown files to PDF and syncing with a Google Drive folder for use in Matsuri Japon projects.

Typical usage

Use this docker file in a CI config file and use the tools included in your build steps. A service account credentials.json file is needed to sync with Google Drive.

For instance, with CircleCI:

version: 2
jobs:
  build:
    docker:
    - image: matsurijapon/md2drive:latest
    working_directory: /work
    branches:
      only:
        - master
    steps:
    - checkout
    - run: echo ${GOOGLE_CREDS} | base64 --decode > /root/.gdrive/credentials.json
    - run: md2drive ${TARGET_FOLDER_ID}

Limitations

Due to limitations with gdrive, subfolders may not be supported.

About

Minimal docker image to convert markdown files to Google Drive

Resources

License

Stars

Watchers

Forks

Packages