mirror of
https://codeberg.org/Codeberg-CI/examples.git
synced 2025-09-11 12:55:19 -04:00
fix clone-page step with proper ref point
This commit is contained in:
parent
273d4ab6dd
commit
b4dbe7e166
@ -25,15 +25,14 @@ clone:
|
|||||||
- name: clone-page
|
- name: clone-page
|
||||||
image: docker.io/woodpeckerci/plugin-git
|
image: docker.io/woodpeckerci/plugin-git
|
||||||
settings:
|
settings:
|
||||||
partial: false
|
|
||||||
remote: https://codeberg.org/<YOUR_USERNAME>/<YOUR_PAGE_REPO>.git
|
remote: https://codeberg.org/<YOUR_USERNAME>/<YOUR_PAGE_REPO>.git
|
||||||
|
ref: HEAD
|
||||||
path: _site
|
path: _site
|
||||||
# clone the pages branch
|
# clone the pages branch
|
||||||
# - name: clone-page
|
# - name: clone-page
|
||||||
# image: woodpeckerci/plugin-git
|
# image: woodpeckerci/plugin-git
|
||||||
# settings:
|
# settings:
|
||||||
# branch: pages
|
# branch: pages
|
||||||
# partial: false
|
|
||||||
# path: _site
|
# path: _site
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -52,7 +51,7 @@ steps:
|
|||||||
image: docker.io/appleboy/drone-git-push:latest
|
image: docker.io/appleboy/drone-git-push:latest
|
||||||
settings:
|
settings:
|
||||||
ssh_key:
|
ssh_key:
|
||||||
from_secret: codeberg_ssh
|
from_secret: ssh_key
|
||||||
# push to your static page repository, change it to your need
|
# push to your static page repository, change it to your need
|
||||||
remote: git@codeberg.org:<YOUR_USERNAME>/pages.git
|
remote: git@codeberg.org:<YOUR_USERNAME>/pages.git
|
||||||
# if you are using a branch rather than a repo, change `remote` setting
|
# if you are using a branch rather than a repo, change `remote` setting
|
||||||
|
Loading…
x
Reference in New Issue
Block a user