Skip to content

Commit

Permalink
cleanup and try backend build
Browse files Browse the repository at this point in the history
  • Loading branch information
kuanfandevops committed Mar 15, 2024
1 parent c8a6b6a commit 3d24ecb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 289 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/dev-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: CTHUB 0.2.0 Dev CI

on:
push:
branches: [ release-0.2.0 ]
branches: [ backend-build-0.2.0 ]
paths:
- frontend/**
- backend/**
Expand Down Expand Up @@ -57,13 +57,13 @@ jobs:
insecure_skip_tls_verify: true
namespace: ${{ env.TOOLS_NAMESPACE }}

# - name: Build CTHUB Backend
# run: |
# cd openshift/templates/backend
# oc process -f ./backend-bc.yaml NAME=cthub SUFFIX=-${{ env.VERSION }}-${{ env.PRE_RELEASE }} VERSION=${{ env.VERSION }}-${{ env.PRE_RELEASE }} GIT_URL=${{ env.GIT_URL }} GIT_REF=release-${{ env.VERSION }} | oc apply --wait=true -f - -n ${{ env.TOOLS_NAMESPACE }}
# sleep 5s
# oc -n ${{ env.TOOLS_NAMESPACE }} wait --for=condition=Complete --timeout=900s build/cthub-backend-${{ env.VERSION }}-${{ env.PRE_RELEASE }}-1
# oc tag ${{ env.TOOLS_NAMESPACE }}/cthub-backend:${{ env.VERSION }}-${{ env.PRE_RELEASE }} ${{ env.DEV_NAMESPACE }}/cthub-backend:${{ env.VERSION }}-${{ env.PRE_RELEASE }}
- name: Build CTHUB Backend
run: |
cd openshift/templates/backend
oc process -f ./backend-bc.yaml NAME=cthub SUFFIX=-${{ env.VERSION }}-${{ env.PRE_RELEASE }} VERSION=${{ env.VERSION }}-${{ env.PRE_RELEASE }} GIT_URL=${{ env.GIT_URL }} GIT_REF=release-${{ env.VERSION }} | oc apply --wait=true -f - -n ${{ env.TOOLS_NAMESPACE }}
sleep 5s
oc -n ${{ env.TOOLS_NAMESPACE }} wait --for=condition=Complete --timeout=900s build/cthub-backend-${{ env.VERSION }}-${{ env.PRE_RELEASE }}-1
oc tag ${{ env.TOOLS_NAMESPACE }}/cthub-backend:${{ env.VERSION }}-${{ env.PRE_RELEASE }} ${{ env.DEV_NAMESPACE }}/cthub-backend:${{ env.VERSION }}-${{ env.PRE_RELEASE }}
- name: Build CTHUB Frontend
run: |
Expand Down
137 changes: 0 additions & 137 deletions django/.s2i/bin/assemble

This file was deleted.

1 change: 0 additions & 1 deletion django/.s2i/environment

This file was deleted.

16 changes: 1 addition & 15 deletions openshift/templates/backend/backend-bc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,6 @@ parameters:
description: cthub branch name of the pr
required: true
objects:
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
annotations:
description: Keeps track of changes in the backend image
creationTimestamp: null
name: ${NAME}-python
labels:
shared: "true"
spec:
lookupPolicy:
local: false
status:
dockerImageRepository: ""
- apiVersion: image.openshift.io/v1
kind: ImageStream
metadata:
Expand Down Expand Up @@ -100,7 +86,7 @@ objects:
value: 'true'
from:
kind: ImageStreamTag
name: python-39:1-18.1634036280
name: python-311:1-52
forcePull: true
noCache: true
type: Source
Expand Down
128 changes: 0 additions & 128 deletions react/.s2i/bin/assemble

This file was deleted.

0 comments on commit 3d24ecb

Please sign in to comment.