📑
Chris Johnson's KB
  • Chris Johnson's KB
  • Meta
    • Pages to Add
  • Cheat Sheets
    • Apache
    • Docker
    • Gatsby
    • Git
    • GraphQL
    • iOS
    • MySQL
    • Nginx
    • NextJS
    • NodeJS
    • Rails
    • React
    • Security Tools
    • Shell (Linux)
    • SwiftUI
    • Ubuntu Server
    • Vim
  • Computing
    • Mac
    • iOS
    • ChromeOS
    • Windows
    • Browser Plugins
    • RSI Prevention
    • Voice Control
    • AWS Cloud 9
    • Visual Studio Code
    • Linux
  • Workflows
    • Podcasting
    • Setting up a new Mac
    • Site Deploys
  • Hardware
    • Dell U2720Q Monitor
    • Moonlander Keyboard
    • Apple Silicon Macs
  • Productivity
    • Structure
    • Nuggets of Wisdom
  • Coffee
    • Coffee Notes & Equipment
    • Coffee Beans
    • AeroPress Recipes
    • V60 Recipes
    • Moka Pot Recipes
    • French Press Recipes
  • Gaming
    • Rocket League
  • Food
    • Cocktails
    • Favorite Recipes
    • Whisky Reviews
    • Infinity Bottle
    • Favorite Wines
  • Inspiration
    • Quotes
  • Philosophy
    • Life
    • Programming
  • Fitness
    • Diets
    • Exercise Notes
    • Personal Training Notes
Powered by GitBook
On this page
  • Bitbucket
  • Github Actions
  • Dandelion

Was this helpful?

  1. Workflows

Site Deploys

Bitbucket

Go into the Repo settings / Pipelines / SSH Keys Add your destination server(s) to Known hosts

Add USER and PASSWORD variables (if you're not using an SSH key) to the Repository variables

Add a bitbucket-pipelines.yml file. Here's a basic one for deploying to a SFTP server:

image: atlassian/default-image:2

pipelines:
  default:
    - step:
        name: 'Deploy to Staging'
        script:
          - echo "Your deployment to staging script goes here..."
    - step:
        name: 'Deploy MU-Plugins to Production'
        trigger: 'manual'
        script:
          - pipe: atlassian/sftp-deploy:0.5.7
            variables:
              USER: $USER
              SERVER: 'sftp.pressable.com'
              REMOTE_PATH: '/htdocs/wp-content/mu-plugins'
              LOCAL_PATH: 'wp-content/mu-plugins/*'
              PASSWORD: $PASSWORD
    - step:
        name: 'Deploy Theme to Production'
        trigger: 'manual'
        script:
          - pipe: atlassian/sftp-deploy:0.5.7
            variables:
              USER: $USER
              SERVER: 'sftp.pressable.com'
              REMOTE_PATH: '/htdocs/wp-content/themes/YOUR_THEME'
              LOCAL_PATH: 'wp-content/themes/YOUR_THEME/*'
              PASSWORD: $PASSWORD

Github Actions

Dandelion

PreviousSetting up a new MacNextDell U2720Q Monitor

Last updated 3 years ago

Was this helpful?

Potential Github SFTP action:

https://github.com/Creepios/sftp-action
https://github.com/scttnlsn/dandelion