This commit is contained in:
parent
b924ffd041
commit
932b6e24b4
38
.drone.yml
38
.drone.yml
@ -5,29 +5,17 @@ name: python
|
||||
|
||||
steps:
|
||||
|
||||
# - name: badgie
|
||||
# image: python
|
||||
# environment:
|
||||
# USERNAME:
|
||||
# from_secret: user_gitea
|
||||
# PASSWORD:
|
||||
# from_secret: gitea_token
|
||||
# commands:
|
||||
# - pip install badgie
|
||||
# - badgie -w README.md -s for-the-badge
|
||||
# - git remote set-url origin https://$USERNAME:$PASSWORD@git.sthope.dev/sthope/portainer-template
|
||||
# - git add README.md
|
||||
# - git commit -m "Update README.md 🐦"
|
||||
# - git push origin main
|
||||
|
||||
- name: backend
|
||||
image: node:14 # Use an appropriate Node.js version
|
||||
- name: badgie
|
||||
image: python
|
||||
environment:
|
||||
USERNAME:
|
||||
from_secret: user_gitea
|
||||
PASSWORD:
|
||||
from_secret: gitea_token
|
||||
commands:
|
||||
- cd /drone/src # Change to the directory containing your Node.js project
|
||||
- npm install # Install dependencies (if needed)
|
||||
- npm run serve # Run your npm command
|
||||
|
||||
- name: delay
|
||||
image: alpine
|
||||
commands:
|
||||
- sleep 300 # Sleep for 5 minutes (300 seconds)
|
||||
- pip install badgie
|
||||
- badgie -w README.md -s for-the-badge
|
||||
# - git remote set-url origin https://$USERNAME:$PASSWORD@git.sthope.dev/sthope/portainer-template
|
||||
- git add README.md
|
||||
- git commit -m "Update README.md 🐦"
|
||||
- git push origin main
|
||||
|
Loading…
x
Reference in New Issue
Block a user