Ethan Lane
93d11c02a6
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
# Description Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change. - Migrate to Woodpecker CI > **NOTE:** This will require the Drone project to be disabled before merge! #122 ## Type of change Please delete options that are not relevant. - [x] New feature (non-breaking change which adds functionality) # How Has This Been Tested? Please describe the tests that you ran to verify the changes. Provide instructions so we can reproduce. Please also list any relevant details to your test configuration. # Checklist - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation - [ ] My changes generate no new warnings - [ ] I have added tests that provde my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged and published in downstream modules Reviewed-on: https://gitea.vylpes.xyz/External/card-drop/pulls/150 Reviewed-by: VylpesTester <tester@vylpes.com> Co-authored-by: Ethan Lane <ethan@vylpes.com> Co-committed-by: Ethan Lane <ethan@vylpes.com>
47 lines
No EOL
1.4 KiB
YAML
47 lines
No EOL
1.4 KiB
YAML
steps:
|
|
build:
|
|
image: node
|
|
commands:
|
|
- npm ci
|
|
- npm run build
|
|
when:
|
|
event: push
|
|
branch: [ hotfix/*, feature/*, renovate/*, develop, main ]
|
|
lint:
|
|
image: node
|
|
commands:
|
|
- npm run lint
|
|
when:
|
|
event: push
|
|
branch: [ hotfix/*, feature/*, renovate/*, develop, main ]
|
|
test:
|
|
image: node
|
|
commands:
|
|
- npm test
|
|
when:
|
|
event: push
|
|
branch: [ hotfix/*, feature/*, renovate/*, develop, main ]
|
|
stage:
|
|
image: alpine
|
|
secrets: [ ssh_key, stage_bot_token ]
|
|
commands:
|
|
- apk add rsync openssh-client
|
|
- eval `ssh-agent -s`
|
|
- echo "$SSH_KEY" | tr -d '\r' | ssh-add -
|
|
- rsync -e "ssh -o StrictHostKeyChecking=no" -r ./* vylpes@192.168.68.120:/home/vylpes/apps/card-drop/card-drop_stage
|
|
- ssh vylpes@192.168.68.120 BOT_TOKEN='$${stage_bot_token}' 'bash -s' < ./scripts/deploy_stage.sh
|
|
when:
|
|
event: push
|
|
branch: [ develop ]
|
|
deploy:
|
|
image: alpine
|
|
secrets: [ ssh_key, prod_bot_token ]
|
|
commands:
|
|
- apk add rsync openssh-client
|
|
- eval `ssh-agent -s`
|
|
- echo "$SSH_KEY" | tr -d '\r' | ssh-add -
|
|
- rsync -e "ssh -o StrictHostKeyChecking=no" -r ./* vylpes@192.168.68.120:/home/vylpes/apps/card-drop/card-drop_prod
|
|
- ssh vylpes@192.168.68.120 BOT_TOKEN='$${prod_bot_token}' 'bash -s' < ./scripts/deploy_prod.sh
|
|
when:
|
|
event: push
|
|
branch: [ main ] |