mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-30 13:32:30 +08:00
Test out the new docs publishing in staging
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
- file: dest=/srv/web/docs state=directory
|
||||
|
||||
- copy: >
|
||||
src=docs-sync dest=/usr/local/bin/docs-sync
|
||||
- template: >
|
||||
src=docs-sync.j2 dest=/usr/local/bin/docs-sync
|
||||
owner=root group=root mode=0755
|
||||
tags:
|
||||
- fedora-docs
|
||||
|
||||
@@ -4,10 +4,17 @@ if [ ! -d /srv/web/docs ]
|
||||
then
|
||||
echo "/srv/web/docs missing"
|
||||
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
|
||||
{% endif %}
|
||||
fi
|
||||
|
||||
|
||||
cd /srv/web/docs
|
||||
git reset -q --hard
|
||||
git pull -q
|
||||
/usr/bin/git reset -q --hard
|
||||
{% if env == 'staging' %}
|
||||
/usr/bin/git checkout -q stg
|
||||
{% endif %}
|
||||
/usr/bin/git pull -q --ff-only
|
||||
Reference in New Issue
Block a user