CirclecI

Step 1. Environment Variables

Set the following environment variables using Skipper credentials.

  • SKPR_USERNAME
  • SKPR_PASSWORD

Step 2. Command

deploy:
  docker:
    - image: skpr/cli:latest
  steps:
    - checkout
    - setup_remote_docker:
        docker_layer_caching: true
    - run:
        name: Pull Images
        command: |
          docker pull skpr/php-cli:7.2-1.x
          docker pull skpr/php-fpm:7.2-1.x
          docker pull skpr/nginx:1.x
    - run:
        name: Build and Deploy
        command: |
          VERSION=$(git describe --tags --always)
          skpr package $VERSION
          skpr deploy dev $VERSION
    - run:
        name: Post Commands
        command: |
          skpr exec dev -- make deploy