From 65df5b5e3a758ec403f07386505e35ef3a81a76b Mon Sep 17 00:00:00 2001 From: Jesus Almanza Date: Sun, 25 May 2025 10:26:19 -0500 Subject: [PATCH 1/7] add /mars endpoint --- express-helloworld/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 782ccf03..9bc5c939 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -5,6 +5,10 @@ app.get('/', function (req, res) { res.send('Hello World!\n'); }); +app.get('/mars', function(req, res) { + res.send('Hello Mars!\n'); +}) + app.listen(8080, function () { console.log('Example app listening on port 8080!'); }); From 2e830324b71556a44cba0e7689d6688245eb0836 Mon Sep 17 00:00:00 2001 From: Jesus Almanza Date: Mon, 26 May 2025 21:19:53 -0500 Subject: [PATCH 2/7] se actualiza a version 2 --- version/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/app.js b/version/app.js index ea830239..2785f252 100644 --- a/version/app.js +++ b/version/app.js @@ -5,7 +5,7 @@ var response; app.get('/', function (req, res) { - response = 'This is version 1 of the app.' + '\n'; + response = 'This is version 2 of the app.' + '\n'; //send the response to the client res.send(response); From 0648a9a1e49e4f3120feed91566d9eed52d4f83c Mon Sep 17 00:00:00 2001 From: Jesus Almanza Date: Mon, 26 May 2025 21:32:54 -0500 Subject: [PATCH 3/7] Actualiza a la version 3 --- version/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/app.js b/version/app.js index 2785f252..4833dd74 100644 --- a/version/app.js +++ b/version/app.js @@ -5,7 +5,7 @@ var response; app.get('/', function (req, res) { - response = 'This is version 2 of the app.' + '\n'; + response = 'This is version 3 of the app.' + '\n'; //send the response to the client res.send(response); From 0dc16d30d82860c00cf8764fef290fa2a0920d54 Mon Sep 17 00:00:00 2001 From: jialmanzal Date: Tue, 27 May 2025 10:43:06 -0500 Subject: [PATCH 4/7] Create openshift-build.yml dd workflow to trigger OpenShift build --- .github/workflows/openshift-build.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/openshift-build.yml diff --git a/.github/workflows/openshift-build.yml b/.github/workflows/openshift-build.yml new file mode 100644 index 00000000..537fd8cc --- /dev/null +++ b/.github/workflows/openshift-build.yml @@ -0,0 +1,24 @@ +name: Trigger OpenShift Build + +on: + push: + branches: [ main ] + +jobs: + trigger-build: + runs-on: ubuntu-latest + + steps: + - name: Install OC CLI + run: | + curl -LO "https://mirror.openshift.com/pub/openshift-v4/clients/oc/latest/linux/oc.tar.gz" + tar -xvf oc.tar.gz + sudo mv oc /usr/local/bin/oc + + - name: Login to OpenShift + run: | + oc login https://api.rm3.7wse.p1.openshiftapps.com:6443 --token=${{ secrets.OPENSHIFT_TOKEN }} + + - name: Start Build in OpenShift + run: | + oc start-build version -n jesusalmanza-dev From 8514a50382263f89fd22448df50d1c3648ea4179 Mon Sep 17 00:00:00 2001 From: Jesus Almanza Date: Tue, 27 May 2025 10:46:48 -0500 Subject: [PATCH 5/7] ahora estado 4 --- version/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/app.js b/version/app.js index 4833dd74..1a7395c5 100644 --- a/version/app.js +++ b/version/app.js @@ -5,7 +5,7 @@ var response; app.get('/', function (req, res) { - response = 'This is version 3 of the app.' + '\n'; + response = 'This is version 4 of the app.' + '\n'; //send the response to the client res.send(response); From 36e8f1d727641c6987c97681530266c308c38c9b Mon Sep 17 00:00:00 2001 From: Jesus Almanza Date: Tue, 27 May 2025 11:02:09 -0500 Subject: [PATCH 6/7] version 5 --- .github/workflows/openshift-build.yml | 2 +- version/app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/openshift-build.yml b/.github/workflows/openshift-build.yml index 537fd8cc..69791300 100644 --- a/.github/workflows/openshift-build.yml +++ b/.github/workflows/openshift-build.yml @@ -2,7 +2,7 @@ name: Trigger OpenShift Build on: push: - branches: [ main ] + branches: [ update-app2 ] jobs: trigger-build: diff --git a/version/app.js b/version/app.js index 1a7395c5..c769ee67 100644 --- a/version/app.js +++ b/version/app.js @@ -5,7 +5,7 @@ var response; app.get('/', function (req, res) { - response = 'This is version 4 of the app.' + '\n'; + response = 'This is version 5 of the app.' + '\n'; //send the response to the client res.send(response); From 8b0e88e25f6b2dc1f2dee6c2568481d40c5bfc0f Mon Sep 17 00:00:00 2001 From: Jesus Almanza Date: Tue, 27 May 2025 11:15:25 -0500 Subject: [PATCH 7/7] Ahora version 6 --- version/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version/app.js b/version/app.js index c769ee67..c2bae735 100644 --- a/version/app.js +++ b/version/app.js @@ -5,7 +5,7 @@ var response; app.get('/', function (req, res) { - response = 'This is version 5 of the app.' + '\n'; + response = 'This is version 6 of the app.' + '\n'; //send the response to the client res.send(response);