the-new-hotness: Fix indentation
Signed-off-by: Michal Konečný <mkonecny@redhat.com>
This commit is contained in:
parent
965dd5c962
commit
e01f652291
1 changed files with 30 additions and 30 deletions
|
@ -1,4 +1,4 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
items:
|
items:
|
||||||
- apiVersion: v1
|
- apiVersion: v1
|
||||||
kind: BuildConfig
|
kind: BuildConfig
|
||||||
|
@ -30,11 +30,11 @@ items:
|
||||||
dnf clean all -y
|
dnf clean all -y
|
||||||
RUN git clone https://github.com/fedora-infra/the-new-hotness.git && \
|
RUN git clone https://github.com/fedora-infra/the-new-hotness.git && \
|
||||||
pushd the-new-hotness && \
|
pushd the-new-hotness && \
|
||||||
{% if env == 'staging' %}
|
{% if env == 'staging' %}
|
||||||
git checkout staging && \
|
git checkout staging && \
|
||||||
{% else %}
|
{% else %}
|
||||||
git checkout production && \
|
git checkout production && \
|
||||||
{% endif %}
|
{% endif %}
|
||||||
python3 setup.py install && \
|
python3 setup.py install && \
|
||||||
pip-3 install . && \
|
pip-3 install . && \
|
||||||
pushd hotness_schema && \
|
pushd hotness_schema && \
|
||||||
|
@ -42,31 +42,31 @@ items:
|
||||||
pip-3 install . && \
|
pip-3 install . && \
|
||||||
rm -rf the-new-hotness
|
rm -rf the-new-hotness
|
||||||
EXPOSE 9940
|
EXPOSE 9940
|
||||||
type: Dockerfile
|
type: Dockerfile
|
||||||
git:
|
git:
|
||||||
uri: https://github.com/fedora-infra/the-new-hotness.git
|
uri: https://github.com/fedora-infra/the-new-hotness.git
|
||||||
{% if env == 'staging' %}
|
{% if env == 'staging' %}
|
||||||
ref: staging
|
ref: staging
|
||||||
{% else %}
|
{% else %}
|
||||||
ref: production
|
ref: production
|
||||||
{% endif %}
|
{% endif %}
|
||||||
strategy:
|
strategy:
|
||||||
type: Docker
|
type: Docker
|
||||||
output:
|
output:
|
||||||
to:
|
to:
|
||||||
kind: ImageStreamTag
|
kind: ImageStreamTag
|
||||||
name: the-new-hotness:latest
|
name: the-new-hotness:latest
|
||||||
triggers:
|
triggers:
|
||||||
{% if stg_anitya_github_secret is defined and env == 'staging' %}
|
{% if stg_anitya_github_secret is defined and env == 'staging' %}
|
||||||
- type: GitHub
|
- type: GitHub
|
||||||
github:
|
github:
|
||||||
secret: "{{ stg_hotness_github_secret }}"
|
secret: "{{ stg_hotness_github_secret }}"
|
||||||
{% elif anitya_github_secret is defined and env == 'production' %}
|
{% elif anitya_github_secret is defined and env == 'production' %}
|
||||||
- type: GitHub
|
- type: GitHub
|
||||||
github:
|
github:
|
||||||
secret: "{{ hotness_github_secret }}"
|
secret: "{{ hotness_github_secret }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- type: ConfigChange
|
- type: ConfigChange
|
||||||
- type: ImageChange
|
- type: ImageChange
|
||||||
kind: List
|
kind: List
|
||||||
metadata: {}
|
metadata: {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue