Created
October 19, 2021 05:00
-
-
Save jasperf/0e872c97c6da6a9657edcdf1cec735f4 to your computer and use it in GitHub Desktop.
Bitbucket pipeline WordPress Site
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
image: thenatives/ci-php-yarn:1.0 | |
pipelines: | |
branches: | |
develop: | |
- step: | |
name: Deploy Development | |
deployment: test | |
caches: | |
- node | |
- composer | |
script: | |
- ls | |
- pwd | |
# - cd "wp-content/themes/$THEME_NAME" | |
# - composer install | |
# - yarn && yarn build:production | |
# - cd "/opt/atlassian/pipelines/agent/build" | |
# - mv .gitignore .gitignore-old | |
# - mv .gitignore-build .gitignore | |
# - git status | |
# - git add . | |
# - git commit -m "deployment" | |
# - git remote -v | |
# - git fetch --unshallow origin | |
# - git push -f $GIT_REPO develop | |
# - echo "Pushed to Development" | |
- echo "Develop check" | |
staging: | |
- step: | |
name: Deploy Staging | |
deployment: staging | |
caches: | |
- node | |
- composer | |
script: | |
- ls | |
# - pwd | |
# - cd "wp-content/themes/$THEME_NAME" | |
# - composer install | |
# - yarn && yarn build:production | |
# - cd "/opt/atlassian/pipelines/agent/build" | |
# - mv .gitignore .gitignore-old | |
# - mv .gitignore-build .gitignore | |
# - git status | |
# - git add . | |
# - git commit -m "deployment" | |
# - git remote -v | |
# - git fetch --unshallow origin | |
# - git push -f $GIT_REPO staging | |
# - echo "Pushed to Staging" | |
- echo "Staging check" | |
master: | |
- step: | |
name: Deploy Production | |
deployment: production | |
caches: | |
- node | |
- composer | |
script: | |
- ls | |
# - pwd | |
# - cd "wp-content/themes/$THEME_NAME" | |
# - composer install | |
# - yarn && yarn build:production | |
# - cd "/opt/atlassian/pipelines/agent/build" | |
# - mv .gitignore .gitignore-old | |
# - mv .gitignore-build .gitignore | |
# - git status | |
# - git add . | |
# - git commit -m "deployment" | |
# - git remote -v | |
# - git fetch --unshallow origin | |
# - git push -f $GIT_REPO master | |
# - echo "Pushed to Production" | |
- echo "Production check" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment