The source code for my personal website https://yarmo.eu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

87 lines
2.0 KiB

---
kind: pipeline
type: docker
name: deploy dev
steps:
    - name: composer
      image: composer
      commands:
          - composer install
          - composer run-script minifyCSS
    - name: rsync to prism
      image: drillster/drone-rsync
      settings:
          hosts:
              from_secret: ssh_host
          port:
              from_secret: ssh_port
          user:
              from_secret: ssh_user
          key:
              from_secret: ssh_key
          source: ./
          target: ~/web/dev.yarmo.eu
          exclude: [ ".git/", ".gitignore", ".drone.yml", "composer.json", "composer.lock" ]
    - name: purge cache
      image: appleboy/drone-ssh
      settings:
          host:
              from_secret: ssh_host
          port:
              from_secret: ssh_port
          username:
              from_secret: ssh_user
          key:
              from_secret: ssh_key
          script:
              - rm -rf web/dev.yarmo.eu/cache/*
trigger:
    branch:
        - dev
---
kind: pipeline
type: docker
name: deploy prod
steps:
    - name: composer
      image: composer
      commands:
          - composer install
          - composer run-script minifyCSS
    - name: rsync to prism
      image: drillster/drone-rsync
      settings:
          hosts:
              from_secret: ssh_host
          port:
              from_secret: ssh_port
          user:
              from_secret: ssh_user
          key:
              from_secret: ssh_key
          source: ./
          target: ~/web/yarmo.eu
          exclude: [ ".git/", ".gitignore", ".drone.yml", "composer.json", "composer.lock" ]
    - name: purge cache
      image: appleboy/drone-ssh
      settings:
          host:
              from_secret: ssh_host
          port:
              from_secret: ssh_port
          username:
              from_secret: ssh_user
          key:
              from_secret: ssh_key
          script:
              - rm -rf web/yarmo.eu/cache/*
trigger:
    branch:
        - main