[websites] Clean the role
The websites moved to new way of doing things and we don't need the old fedora websites build anymore. This change will clean the role of the obsolete files. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
002c57d701
commit
d508aa48da
4 changed files with 0 additions and 111 deletions
|
|
@ -21,34 +21,6 @@
|
|||
- kevin
|
||||
- glb
|
||||
|
||||
# legacy websites
|
||||
- role: openshift/object
|
||||
object_app: websites
|
||||
object_file: pvc.yml
|
||||
object_objectname: pvc.yml
|
||||
|
||||
- role: openshift/imagestream
|
||||
imagestream_app: websites
|
||||
imagestream_imagename: fedora-websites
|
||||
|
||||
- role: openshift/object
|
||||
object_app: websites
|
||||
object_template: fedora-websites-bc.yml.j2
|
||||
object_objectname: fedora-websites-bc.yml
|
||||
|
||||
- role: openshift/start-build
|
||||
start_build_app: websites
|
||||
start_build_buildname: fedora-websites
|
||||
start_build_objectname: fedora-websites
|
||||
tags:
|
||||
- never
|
||||
- build
|
||||
|
||||
- role: openshift/object
|
||||
object_app: websites
|
||||
object_template: fedora-websites-cron.yml.j2
|
||||
object_objectname: fedora-websites-cron.yml
|
||||
|
||||
# New websites 3.0
|
||||
- role: openshift/imagestream
|
||||
imagestream_app: websites
|
||||
|
|
|
|||
|
|
@ -1,12 +0,0 @@
|
|||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
name: websites-storage
|
||||
spec:
|
||||
accessModes:
|
||||
- ReadWriteMany
|
||||
resources:
|
||||
requests:
|
||||
storage: 5Gi
|
||||
storageClassName: ""
|
||||
|
|
@ -1,25 +0,0 @@
|
|||
---
|
||||
apiVersion: build.openshift.io/v1
|
||||
kind: BuildConfig
|
||||
metadata:
|
||||
name: fedora-websites
|
||||
spec:
|
||||
successfulBuildsHistoryLimit: 1
|
||||
failedBuildsHistoryLimit: 1
|
||||
runPolicy: Serial
|
||||
source:
|
||||
git:
|
||||
uri: "https://pagure.io/fedora-websites.git"
|
||||
{% if env == 'staging' %}
|
||||
ref: staging
|
||||
{% else %}
|
||||
ref: main
|
||||
{% endif %}
|
||||
strategy:
|
||||
type: Docker
|
||||
dockerStrategy:
|
||||
dockerfilePath: Dockerfile
|
||||
output:
|
||||
to:
|
||||
kind: ImageStreamTag
|
||||
name: fedora-websites:latest
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
---
|
||||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: fedora-websites-build
|
||||
spec:
|
||||
concurrencyPolicy: Forbid
|
||||
schedule: "10 * * * *"
|
||||
successfulJobsHistoryLimit: 1
|
||||
failedJobsHistoryLimit: 1
|
||||
startingDeadlineSeconds: 300
|
||||
jobTemplate:
|
||||
spec:
|
||||
activeDeadlineSeconds: 900
|
||||
backoffLimit: 0
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
parent: "cronjobbuild"
|
||||
spec:
|
||||
containers:
|
||||
- name: build
|
||||
image: image-registry.openshift-image-registry.svc:5000/websites/fedora-websites:latest
|
||||
command: ["/bin/bash", "-c"]
|
||||
args:
|
||||
- |
|
||||
cd /tmp
|
||||
git clone --depth 1 --single-branch https://pagure.io/fedora-websites.git
|
||||
cd fedora-websites
|
||||
|
||||
# build all sites in $OUTPUT
|
||||
./tools/build_all.sh
|
||||
env:
|
||||
- name: BUILD_ENV
|
||||
value: "{{ env_short }}"
|
||||
- name: OUTPUT
|
||||
value: /output
|
||||
volumeMounts:
|
||||
- name: build-output
|
||||
mountPath: /output
|
||||
readOnly: false
|
||||
restartPolicy: Never
|
||||
volumes:
|
||||
- name: build-output
|
||||
persistentVolumeClaim:
|
||||
claimName: websites-storage
|
||||
Loading…
Add table
Add a link
Reference in a new issue