[wip] gitea actions
All checks were successful
Build profile / Explore-Gitea-Actions (push) Successful in 35s
All checks were successful
Build profile / Explore-Gitea-Actions (push) Successful in 35s
This commit is contained in:
parent
e0f67dc360
commit
fdc91f7c29
8
.gitea/workflows/build.yaml
Normal file
8
.gitea/workflows/build.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
name: Build profile
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Explore-Gitea-Actions:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- run: whereis git
|
|
@ -1,34 +0,0 @@
|
|||
steps:
|
||||
update_profile:
|
||||
image: alpine/git
|
||||
secrets: [ssh_priv_key]
|
||||
commands:
|
||||
- git config --global user.email ci@gitnet.fr
|
||||
- git config --global user.name CI
|
||||
- apk add wget
|
||||
- cp README.tpl.md README.md
|
||||
- ./bin/rss -f https://www.deblan.io/RSS | head -n 10 >> README.md
|
||||
- git status
|
||||
- git add .
|
||||
- git commit -m "Build ${CI_BUILD_NUMBER}" || true
|
||||
- mkdir -p ~/.ssh
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$SSH_PRIV_KEY" | tr -d '\r' | ssh-add -
|
||||
- 'echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
|
||||
- git remote add repo git@gitnet.fr:deblan/.profile.git
|
||||
- git push repo main || true
|
||||
when:
|
||||
event: [deployment, cron]
|
||||
|
||||
# deploy:
|
||||
# image: appleboy/drone-git-push
|
||||
# commands:
|
||||
# settings:
|
||||
# branch: main
|
||||
# remote: git@gitnet.fr:deblan/.profile.git
|
||||
# force: false
|
||||
# commit: false
|
||||
# ssh_key:
|
||||
# from_secret: ssh_priv_key
|
||||
# when:
|
||||
# event: [push, deployment, cron]
|
Loading…
Reference in a new issue