Files
fedora-infra_ansible/roles/openshift-apps/websites/templates/build.sh
Rick Elrod 769d768581 well that was almost right
Signed-off-by: Rick Elrod <relrod@redhat.com>
2019-05-23 19:49:34 +00:00

11 lines
347 B
Bash

#!/bin/bash -xe
cd /tmp
git clone --branch {% if env == "staging" %}staging{% else %}master{% endif %} https://pagure.io/fedora-web/websites.git
cd websites
git rev-parse HEAD
bash ./build-prod.sh /output
curl -O https://codeblock.fedorapeople.org/atomic-htaccess.py
mkdir -p out build
python atomic-htaccess.py
cp -r out/. /output/getfedora.org/