Skip to content

Instantly share code, notes, and snippets.

@georgerussellpruitt
Created August 25, 2021 18:42
Show Gist options
  • Save georgerussellpruitt/ef128a7ee6860527d53be08b58bc9865 to your computer and use it in GitHub Desktop.
Save georgerussellpruitt/ef128a7ee6860527d53be08b58bc9865 to your computer and use it in GitHub Desktop.
example WP pipe
# WordPress build with custom theme as repo
image: atlassian/default-image:2
pipelines:
default:
- parallel:
- step:
name: 'Build WordPress'
script:
- echo "Build wordpress"
- zip -r theme.zip *
- mkdir my_theme
- unzip theme.zip -d my_theme/
- ls -la my_theme/
- git clone --branch 5.7.1 https://github.com/WordPress/WordPress
- mv my_theme/ WordPress/wp-content/themes/
- ls -la WordPress/wp-content/themes/
- ls -la WordPress/wp-content/themes/my_theme/
- zip -r build.zip WordPress/
- mkdir build
- cp build.zip build/
artifacts:
- build/**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment