Test out the new docs publishing in staging
This commit is contained in:
parent
6978888415
commit
dc19d02b1d
2 changed files with 11 additions and 4 deletions
|
@ -1,7 +1,7 @@
|
||||||
- file: dest=/srv/web/docs state=directory
|
- file: dest=/srv/web/docs state=directory
|
||||||
|
|
||||||
- copy: >
|
- template: >
|
||||||
src=docs-sync dest=/usr/local/bin/docs-sync
|
src=docs-sync.j2 dest=/usr/local/bin/docs-sync
|
||||||
owner=root group=root mode=0755
|
owner=root group=root mode=0755
|
||||||
tags:
|
tags:
|
||||||
- fedora-docs
|
- fedora-docs
|
||||||
|
|
|
@ -4,10 +4,17 @@ if [ ! -d /srv/web/docs ]
|
||||||
then
|
then
|
||||||
echo "/srv/web/docs missing"
|
echo "/srv/web/docs missing"
|
||||||
cd /srv/web
|
cd /srv/web
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
git clone https://pagure.io/fedora-docs/fedora-docs-web.git docs
|
||||||
|
{% else %}
|
||||||
git clone https://pagure.io/fedora-docs-web.git docs
|
git clone https://pagure.io/fedora-docs-web.git docs
|
||||||
|
{% endif %}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
cd /srv/web/docs
|
cd /srv/web/docs
|
||||||
git reset -q --hard
|
/usr/bin/git reset -q --hard
|
||||||
git pull -q
|
{% if env == 'staging' %}
|
||||||
|
/usr/bin/git checkout -q stg
|
||||||
|
{% endif %}
|
||||||
|
/usr/bin/git pull -q --ff-only
|
Loading…
Add table
Add a link
Reference in a new issue