From fd08d6709984d553d68b33ff0306fc62ea75b039 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 12:09:45 +0530
Subject: [PATCH 001/155] Delete Jenkinsfile
---
pipeline/Jenkinsfile | 44 --------------------------------------------
1 file changed, 44 deletions(-)
delete mode 100644 pipeline/Jenkinsfile
diff --git a/pipeline/Jenkinsfile b/pipeline/Jenkinsfile
deleted file mode 100644
index 8f8691e..0000000
--- a/pipeline/Jenkinsfile
+++ /dev/null
@@ -1,44 +0,0 @@
-pipeline {
- agent {
- label 'maven'
- }
- stages {
- stage('Build JAR') {
- steps {
- sh "mvn -B -DskipTests clean package"
- stash name:"jar", includes:"target/hello-0.0.1-SNAPSHOT.jar"
- }
- }
- stage('Test') {
- steps {
- sh 'mvn test'
- }
- post {
- always {
- junit 'target/surefire-reports/*.xml'
- }
- }
- }
- stage('Build Image') {
- steps {
- unstash name:"jar"
- script {
- openshift.withCluster() {
- openshift.startBuild("hello", "--from-file=target/hello-0.0.1-SNAPSHOT.jar", "--wait")
- }
- }
- }
- }
- stage('Deploy') {
- steps {
- script {
- openshift.withCluster() {
- def dc = openshift.selector("dc", "hello")
- dc.rollout().latest()
- dc.rollout().status()
- }
- }
- }
- }
- }
-}
From 0119b796b7a49ed682638e2b61365249919e63ec Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 12:10:08 +0530
Subject: [PATCH 002/155] Delete Jenkinsfile
---
Jenkinsfile | 44 --------------------------------------------
1 file changed, 44 deletions(-)
delete mode 100644 Jenkinsfile
diff --git a/Jenkinsfile b/Jenkinsfile
deleted file mode 100644
index 8f8691e..0000000
--- a/Jenkinsfile
+++ /dev/null
@@ -1,44 +0,0 @@
-pipeline {
- agent {
- label 'maven'
- }
- stages {
- stage('Build JAR') {
- steps {
- sh "mvn -B -DskipTests clean package"
- stash name:"jar", includes:"target/hello-0.0.1-SNAPSHOT.jar"
- }
- }
- stage('Test') {
- steps {
- sh 'mvn test'
- }
- post {
- always {
- junit 'target/surefire-reports/*.xml'
- }
- }
- }
- stage('Build Image') {
- steps {
- unstash name:"jar"
- script {
- openshift.withCluster() {
- openshift.startBuild("hello", "--from-file=target/hello-0.0.1-SNAPSHOT.jar", "--wait")
- }
- }
- }
- }
- stage('Deploy') {
- steps {
- script {
- openshift.withCluster() {
- def dc = openshift.selector("dc", "hello")
- dc.rollout().latest()
- dc.rollout().status()
- }
- }
- }
- }
- }
-}
From f034953f1b45e9a2a512c34cb923b75c070a4f5c Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 12:11:57 +0530
Subject: [PATCH 003/155] Delete deployment.yml
---
deployment.yml | 34 ----------------------------------
1 file changed, 34 deletions(-)
delete mode 100644 deployment.yml
diff --git a/deployment.yml b/deployment.yml
deleted file mode 100644
index af93b0c..0000000
--- a/deployment.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-apiVersion: apps/v1
-kind: Deployment
-metadata:
- name: hello-spring-deployment
- labels:
- app: hello-spring
-spec:
- replicas: 3
- selector:
- matchLabels:
- app: hello-spring
- template:
- metadata:
- labels:
- app: hello-spring
- spec:
- containers:
- - name: hello-spring
- image: leonlevy/spring-hello:latest
- ports:
- - containerPort: 8080
----
-apiVersion: v1
-kind: Service
-metadata:
- name: hello-spring-service
-spec:
- selector:
- app: hello-spring
- ports:
- - protocol: TCP
- port: 80
- targetPort: 8080
- type: LoadBalancer
\ No newline at end of file
From 3a5129bcbe38e4d628cbd22c25d20182e058efc0 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 12:12:12 +0530
Subject: [PATCH 004/155] Delete pom.xml
---
pom.xml | 118 --------------------------------------------------------
1 file changed, 118 deletions(-)
delete mode 100644 pom.xml
diff --git a/pom.xml b/pom.xml
deleted file mode 100644
index 0ed6999..0000000
--- a/pom.xml
+++ /dev/null
@@ -1,118 +0,0 @@
-
-
- 4.0.0
-
- com.hello
- hello
- 0.0.1-SNAPSHOT
- jar
-
- hello
- Hello World project for Spring Boot with Unit Test
-
-
- org.springframework.boot
- spring-boot-starter-parent
- 2.0.3.RELEASE
-
-
-
-
- UTF-8
- UTF-8
- 1.8
-
-
-
- 2.3.4
- 0.2.0.RELEASE
- 2.4.1
- 3.5.32
-
-
-
-
-
- org.springframework.boot
- spring-boot-starter-web
-
-
-
- org.springframework.boot
- spring-boot-starter-test
- test
-
-
-
- net.minidev
- json-smart
- 2.3
- compile
-
-
-
- io.fabric8
- kubernetes-client
- ${k8s.client.version}
-
-
-
-
-
-
-
-
- org.springframework.boot
- spring-boot-maven-plugin
-
-
-
-
-
- io.fabric8
- fabric8-maven-plugin
- ${fabric8.maven.plugin.version}
-
-
-
- resource
- build
-
-
-
-
-
-
-
-
- app
- hello
-
-
-
-
-
-
- spring-boot-health-check
-
-
-
-
- spring-boot
-
-
-
- registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.1
-
-
-
-
-
-
-
-
-
-
-
-
From ed1e88ea63c373e5fdbe474c354d52807ff64d2c Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 12:33:54 +0530
Subject: [PATCH 005/155] Create pom.xml
---
pom.xml | 118 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 118 insertions(+)
create mode 100644 pom.xml
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..0ed6999
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,118 @@
+
+
+ 4.0.0
+
+ com.hello
+ hello
+ 0.0.1-SNAPSHOT
+ jar
+
+ hello
+ Hello World project for Spring Boot with Unit Test
+
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.0.3.RELEASE
+
+
+
+
+ UTF-8
+ UTF-8
+ 1.8
+
+
+
+ 2.3.4
+ 0.2.0.RELEASE
+ 2.4.1
+ 3.5.32
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+
+ net.minidev
+ json-smart
+ 2.3
+ compile
+
+
+
+ io.fabric8
+ kubernetes-client
+ ${k8s.client.version}
+
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
+ io.fabric8
+ fabric8-maven-plugin
+ ${fabric8.maven.plugin.version}
+
+
+
+ resource
+ build
+
+
+
+
+
+
+
+
+ app
+ hello
+
+
+
+
+
+
+ spring-boot-health-check
+
+
+
+
+ spring-boot
+
+
+
+ registry.access.redhat.com/redhat-openjdk-18/openjdk18-openshift:1.1
+
+
+
+
+
+
+
+
+
+
+
+
From ba5d1a0d283da856e0330f4f0019aaec462a8337 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 12:44:34 +0530
Subject: [PATCH 006/155] Create abc.yaml
---
abc.yaml | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
create mode 100644 abc.yaml
diff --git a/abc.yaml b/abc.yaml
new file mode 100644
index 0000000..8221e4e
--- /dev/null
+++ b/abc.yaml
@@ -0,0 +1,24 @@
+name: Java CI with maven
+
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: '11'
+ distribution: 'adopt'
+ cache: maven
+
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml
From 870c10127ef776e1e8fe7536b2b2ae5b24ff3c4d Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 14:03:43 +0530
Subject: [PATCH 007/155] Create pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 1 +
1 file changed, 1 insertion(+)
create mode 100644 .github/workflows/pipeline1.yaml
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/.github/workflows/pipeline1.yaml
@@ -0,0 +1 @@
+
From b840c691b70eb9ed619de716fa8bc556af988c6b Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 14:04:50 +0530
Subject: [PATCH 008/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 8b13789..8221e4e 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -1 +1,24 @@
+name: Java CI with maven
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: '11'
+ distribution: 'adopt'
+ cache: maven
+
+ - name: Build with Maven
+ run: mvn -B package --file pom.xml
From 1968b96f758bd04f28c41b0ba1372a33e9a6c143 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 14:05:15 +0530
Subject: [PATCH 009/155] Delete abc.yaml
---
abc.yaml | 24 ------------------------
1 file changed, 24 deletions(-)
delete mode 100644 abc.yaml
diff --git a/abc.yaml b/abc.yaml
deleted file mode 100644
index 8221e4e..0000000
--- a/abc.yaml
+++ /dev/null
@@ -1,24 +0,0 @@
-name: Java CI with maven
-
-on:
- push:
- branches: [master]
- pull_request:
- branches: [master]
-
-jobs:
- build:
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 11
- uses: actions/setup-java@v2
- with:
- java-version: '11'
- distribution: 'adopt'
- cache: maven
-
- - name: Build with Maven
- run: mvn -B package --file pom.xml
From 54623dd9c296076068eb82f1c2d1f8cbb6986557 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 14:55:45 +0530
Subject: [PATCH 010/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 8221e4e..89607c5 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -22,3 +22,21 @@ jobs:
- name: Build with Maven
run: mvn -B package --file pom.xml
+
+ test:
+ name: Unit tests
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: '11'
+ distribution: 'adopt'
+ cache: maven
+
+ - name: Run Tests
+ run: mvn -B test
+
From 9e23936755bed5efc671d6cdcd9ad38451f74be3 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 14:57:44 +0530
Subject: [PATCH 011/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 89607c5..75c755e 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -38,5 +38,5 @@ jobs:
cache: maven
- name: Run Tests
- run: mvn -B test
+ run: mvn test
From 3bbcbbbe3560a35280e82ced58c46b9f706428b5 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 15:47:19 +0530
Subject: [PATCH 012/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 75c755e..e44fca3 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -10,7 +10,9 @@ jobs:
build:
runs-on: ubuntu-latest
-
+
+ needs : test
+
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
@@ -21,7 +23,9 @@ jobs:
cache: maven
- name: Build with Maven
- run: mvn -B package --file pom.xml
+ run: |
+ mvn -B package --file pom.xml
+ mkdir artifacts && cp target/*.jar artifacts
test:
name: Unit tests
@@ -38,5 +42,5 @@ jobs:
cache: maven
- name: Run Tests
- run: mvn test
+ run: mvn -B test
From 4623afb406e02b62cf47a3c3c79623d5dc2bcb64 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 16:30:08 +0530
Subject: [PATCH 013/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 36 ++++++++++++++++++++------------
1 file changed, 23 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index e44fca3..dc1ecf1 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -10,22 +10,31 @@ jobs:
build:
runs-on: ubuntu-latest
-
needs : test
steps:
- - uses: actions/checkout@v2
- - name: Set up JDK 11
- uses: actions/setup-java@v2
- with:
- java-version: '11'
- distribution: 'adopt'
- cache: maven
+ - uses: actions/checkout@v2
+
+ - name: Set up JDK 11
+ uses: actions/setup-java@v2
+ with:
+ java-version: '11'
+ distribution: 'adopt'
+ cache: maven
- - name: Build with Maven
- run: |
- mvn -B package --file pom.xml
- mkdir artifacts && cp target/*.jar artifacts
+ - name: Build with Maven
+ run: |
+ mvn -B package --file pom.xml
+ mkdir artifacts && cp target/*.jar artifacts
+
+ - name: Upload to s3
+ uses: shallwefootball/s3-upload-action@master
+ with:
+ aws_key_id: ${{ secrets.AWS_KEY_ID }}
+ aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
+ aws_bucket: ${{ secrets.AWS_BUCKET }}
+ source_dir: artifacts
+
test:
name: Unit tests
@@ -43,4 +52,5 @@ jobs:
- name: Run Tests
run: mvn -B test
-
+
+
From f28171a5b815bac49227610c849184adae06dfe8 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 16:37:22 +0530
Subject: [PATCH 014/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index dc1ecf1..458e9c1 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -25,7 +25,7 @@ jobs:
- name: Build with Maven
run: |
mvn -B package --file pom.xml
- mkdir artifacts && cp target/*.jar artifacts
+ mkdir artifact && cp target/*.jar artifact
- name: Upload to s3
uses: shallwefootball/s3-upload-action@master
@@ -33,7 +33,7 @@ jobs:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
- source_dir: artifacts
+ source_dir: artifact
test:
From 0fe789428dedef145c8142387c817f23b79ab366 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 16:45:57 +0530
Subject: [PATCH 015/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 458e9c1..ec17cc8 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -10,7 +10,6 @@ jobs:
build:
runs-on: ubuntu-latest
- needs : test
steps:
- uses: actions/checkout@v2
@@ -25,7 +24,7 @@ jobs:
- name: Build with Maven
run: |
mvn -B package --file pom.xml
- mkdir artifact && cp target/*.jar artifact
+ mkdir artifacts && cp target/*.jar artifacts
- name: Upload to s3
uses: shallwefootball/s3-upload-action@master
@@ -33,7 +32,7 @@ jobs:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
- source_dir: artifact
+ source_dir: artifacts
test:
From 26214347b54e293acd6014a8ba2e906b5f0dc065 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 16:49:29 +0530
Subject: [PATCH 016/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index ec17cc8..1ce9a3a 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -27,7 +27,7 @@ jobs:
mkdir artifacts && cp target/*.jar artifacts
- name: Upload to s3
- uses: shallwefootball/s3-upload-action@master
+ uses: ebuckthal/s3-upload-action@v2
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
From 789ae9bb2142cd082562fd3560b9b7461b233341 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 16:51:04 +0530
Subject: [PATCH 017/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 1ce9a3a..d50a3c4 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -27,7 +27,7 @@ jobs:
mkdir artifacts && cp target/*.jar artifacts
- name: Upload to s3
- uses: ebuckthal/s3-upload-action@v2
+ uses: ebuckthal/s3-upload-artifact@v2
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
From 5543f8dee9d42c495b8ce92a4b81bac15a183aac Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 17:32:02 +0530
Subject: [PATCH 018/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index d50a3c4..c80d898 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -24,16 +24,7 @@ jobs:
- name: Build with Maven
run: |
mvn -B package --file pom.xml
- mkdir artifacts && cp target/*.jar artifacts
-
- - name: Upload to s3
- uses: ebuckthal/s3-upload-artifact@v2
- with:
- aws_key_id: ${{ secrets.AWS_KEY_ID }}
- aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
- aws_bucket: ${{ secrets.AWS_BUCKET }}
- source_dir: artifacts
-
+ mkdir Ankit1Kumar/hello-spring/artifacts && cp target/*.jar Ankit1Kumar/hello-spring/artifacts
test:
name: Unit tests
From 6028b37fe36c530a8319b53b51da5cb8afb799b6 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 17:35:01 +0530
Subject: [PATCH 019/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index c80d898..2172baa 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -24,7 +24,7 @@ jobs:
- name: Build with Maven
run: |
mvn -B package --file pom.xml
- mkdir Ankit1Kumar/hello-spring/artifacts && cp target/*.jar Ankit1Kumar/hello-spring/artifacts
+ mkdir ./artifacts && cp target/*.jar ./artifacts
test:
name: Unit tests
From b85285a884a4751b815b129b287ad83bf4aded5b Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 17:49:24 +0530
Subject: [PATCH 020/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 2172baa..a5c6bf3 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -24,7 +24,8 @@ jobs:
- name: Build with Maven
run: |
mvn -B package --file pom.xml
- mkdir ./artifacts && cp target/*.jar ./artifacts
+ mkdir artifacts && cp target/*.jar artifacts
+ cd artifacts && ls
test:
name: Unit tests
From c95334c8c809a30d79ca159a2f1fbc9305d8b6bf Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 29 Mar 2023 17:52:35 +0530
Subject: [PATCH 021/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index a5c6bf3..9e6be26 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -25,7 +25,7 @@ jobs:
run: |
mvn -B package --file pom.xml
mkdir artifacts && cp target/*.jar artifacts
- cd artifacts && ls
+ cd artifacts && pwd
test:
name: Unit tests
From 755058154f9719013c66561c9a8e79fbbe2f1252 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 31 Mar 2023 15:31:21 +0530
Subject: [PATCH 022/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 9e6be26..e192ff7 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -10,6 +10,7 @@ jobs:
build:
runs-on: ubuntu-latest
+ needs: test
steps:
- uses: actions/checkout@v2
@@ -25,7 +26,7 @@ jobs:
run: |
mvn -B package --file pom.xml
mkdir artifacts && cp target/*.jar artifacts
- cd artifacts && pwd
+ cd artifacts && ls
test:
name: Unit tests
From 55495aba66de53ba2975c4e9f14fc7be1ae54acc Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 31 Mar 2023 15:54:58 +0530
Subject: [PATCH 023/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index e192ff7..e95aaa4 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -26,8 +26,14 @@ jobs:
run: |
mvn -B package --file pom.xml
mkdir artifacts && cp target/*.jar artifacts
- cd artifacts && ls
-
+ cd artifacts
+
+ - name: Storing artifact
+ uses: actions/upload-artifact@v3
+ with:
+ name: artifact1
+ path: artifacts/
+
test:
name: Unit tests
runs-on: ubuntu-latest
@@ -45,4 +51,5 @@ jobs:
- name: Run Tests
run: mvn -B test
+
From 7fd8577b9f1c403c48be89c3c71be4a0038dc093 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 12:32:39 +0530
Subject: [PATCH 024/155] Create pipeline2.yml
---
.github/workflows/pipeline2.yml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 .github/workflows/pipeline2.yml
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
new file mode 100644
index 0000000..d3436a3
--- /dev/null
+++ b/.github/workflows/pipeline2.yml
@@ -0,0 +1,17 @@
+name: Artifact handling
+
+on:
+ workflow_run:
+ workflows: [Java CI with maven]
+ types: [completed]
+
+ jobs:
+
+ download:
+
+ runs-on: ubuntu-latest
+ steps:
+ - name: Download arifact from previous workflow
+ uses: actions/download-artifact@v3
+ with:
+ name: artifact1
From 6d7eeacdcfef628f47e239e754ad4551518e823f Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 12:40:06 +0530
Subject: [PATCH 025/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index e95aaa4..1f0603f 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -10,7 +10,7 @@ jobs:
build:
runs-on: ubuntu-latest
- needs: test
+# needs: test
steps:
- uses: actions/checkout@v2
From f8b6fccc3e1a0a7288b8acab751c3638cf3c6e95 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 12:44:32 +0530
Subject: [PATCH 026/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index d3436a3..6b320f9 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -3,15 +3,16 @@ name: Artifact handling
on:
workflow_run:
workflows: [Java CI with maven]
- types: [completed]
+ types:
+ - completed
- jobs:
+jobs:
- download:
+ download:
- runs-on: ubuntu-latest
- steps:
- - name: Download arifact from previous workflow
- uses: actions/download-artifact@v3
- with:
- name: artifact1
+ runs-on: ubuntu-latest
+ steps:
+ - name: Download arifact from previous workflow
+ uses: actions/download-artifact@v3
+ with:
+ name: artifact1
From a2707a602a397fc77ef6093c7d3c0aa8930fd392 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 13:37:35 +0530
Subject: [PATCH 027/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index 6b320f9..a6fea48 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
+ - uses: actions/checkout@v3
- name: Download arifact from previous workflow
uses: actions/download-artifact@v3
with:
From 3e81d601db6952ff08696b62d04768309758c599 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 13:50:17 +0530
Subject: [PATCH 028/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index a6fea48..8ff8c6a 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -14,6 +14,23 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Download arifact from previous workflow
- uses: actions/download-artifact@v3
+ uses: actions/github-script@v6
with:
- name: artifact1
+ script: |
+ let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ run_id: context.payload.workflow_run.id,
+ });
+ let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
+ return artifact.name == "artifact1"
+ })[0];
+ let download = await github.rest.actions.downloadArtifact({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ artifact_id: matchArtifact.id,
+ archive_format: 'zip',
+ });
+ let fs = require('fs');
+ fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
+
From 5430e05edb8d6349529e2a4a126a34770b13d9f8 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 13:55:30 +0530
Subject: [PATCH 029/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index 8ff8c6a..b687bcf 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -34,3 +34,5 @@ jobs:
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
+ - name: check
+ run: ls
From 7899b9f46c7379b1fb0df9cb6c073da71c14416e Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 13:58:12 +0530
Subject: [PATCH 030/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index b687bcf..058376a 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v3
+
- name: Download arifact from previous workflow
uses: actions/github-script@v6
with:
From 71f6775af2152724dc5a124a5a48b7225d7e74b0 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 14:11:31 +0530
Subject: [PATCH 031/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index 058376a..6f2e7a2 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -36,3 +36,16 @@ jobs:
- name: check
run: ls
+
+ upload:
+
+ runs-on: ubuntu-latest
+ needs: download
+ steps:
+ - uses: shallwefootball/s3-upload-action@master
+ with:
+ aws_key_id: ${{ secrets.AWS_KEY_ID }}
+ aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
+ aws_bucket: ${{ secrets.AWS_BUCKET }}
+ source_dir: ./
+
From 24351f332ed1e0540136203e91896649edadb3c6 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 14:19:02 +0530
Subject: [PATCH 032/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index 6f2e7a2..f3f8a72 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -36,16 +36,12 @@ jobs:
- name: check
run: ls
-
- upload:
-
- runs-on: ubuntu-latest
- needs: download
- steps:
- - uses: shallwefootball/s3-upload-action@master
- with:
- aws_key_id: ${{ secrets.AWS_KEY_ID }}
- aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
- aws_bucket: ${{ secrets.AWS_BUCKET }}
- source_dir: ./
+
+ - name: upload to s3
+ uses: shallwefootball/s3-upload-action@master
+ with:
+ aws_key_id: ${{ secrets.AWS_KEY_ID }}
+ aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
+ aws_bucket: ${{ secrets.AWS_BUCKET }}
+ source_dir: artifact1.zar
From c1a255b4e7a4fbbe117595c380fabf499efbe105 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 14:27:52 +0530
Subject: [PATCH 033/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index f3f8a72..2ceeaf4 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -35,7 +35,8 @@ jobs:
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
- name: check
- run: ls
+ run: |
+ ls && pwd
- name: upload to s3
uses: shallwefootball/s3-upload-action@master
@@ -44,4 +45,6 @@ jobs:
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: artifact1.zar
+ - name: check2
+ run: pwd
From c5cf4e81af6431d983c44132e8debbbbb17726eb Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 14:29:39 +0530
Subject: [PATCH 034/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index 2ceeaf4..9509cf6 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -44,7 +44,7 @@ jobs:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
- source_dir: artifact1.zar
+ source_dir: artifact1.zip
- name: check2
run: pwd
From cf855d526b833da09cdff67bf07c3d04cd4380b1 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 14:32:24 +0530
Subject: [PATCH 035/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index 9509cf6..ffd6447 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -44,7 +44,7 @@ jobs:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
- source_dir: artifact1.zip
+ source_dir: /home/runner/work/hello-spring/hello-spring
- name: check2
run: pwd
From 29044a7e63bef273d5f1041bffb434ab1f7e9b86 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 14:42:28 +0530
Subject: [PATCH 036/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index ffd6447..e1e64f6 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -12,7 +12,9 @@ jobs:
runs-on: ubuntu-latest
steps:
-
+ - name: make folder
+ run: mkdir -p folder && cd folder
+
- name: Download arifact from previous workflow
uses: actions/github-script@v6
with:
@@ -37,6 +39,8 @@ jobs:
- name: check
run: |
ls && pwd
+ cd ..
+
- name: upload to s3
uses: shallwefootball/s3-upload-action@master
@@ -44,7 +48,5 @@ jobs:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
- source_dir: /home/runner/work/hello-spring/hello-spring
- - name: check2
- run: pwd
-
+ source_dir: folder
+
From cce3b1bba064b7f4b1acba3d5e3f34d509a7961e Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 14:47:49 +0530
Subject: [PATCH 037/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index e1e64f6..51ed584 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -49,4 +49,5 @@ jobs:
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: folder
+ destination_dir: gha/
From 657864e7f09e1431b3921a48dbf5ac524c16ad50 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 14:56:03 +0530
Subject: [PATCH 038/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 1f0603f..e95aaa4 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -10,7 +10,7 @@ jobs:
build:
runs-on: ubuntu-latest
-# needs: test
+ needs: test
steps:
- uses: actions/checkout@v2
From a46de9dce43fd85b0b276b4def4ce73de981bfa3 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 15:00:34 +0530
Subject: [PATCH 039/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index 51ed584..ce528a6 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -49,5 +49,5 @@ jobs:
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: folder
- destination_dir: gha/
+ destination_dir: github/
From 7c618b80c0b4c53f3393c41c4d549449c50b66cb Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 15:51:40 +0530
Subject: [PATCH 040/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index e95aaa4..2396ea9 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -35,7 +35,7 @@ jobs:
path: artifacts/
test:
- name: Unit tests
+ name: Unit test
runs-on: ubuntu-latest
steps:
From 46aaad64bbf6192bda6416a88cb768b8e2443ee5 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 16:39:48 +0530
Subject: [PATCH 041/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index ce528a6..51ed584 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -49,5 +49,5 @@ jobs:
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: folder
- destination_dir: github/
+ destination_dir: gha/
From aabbb7c4502eceee105fed30d8cc6b465b29d884 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 16:52:12 +0530
Subject: [PATCH 042/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index 51ed584..789fac9 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -35,13 +35,12 @@ jobs:
});
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
-
+ - uses: actions/checkout@v2
- name: check
run: |
- ls && pwd
- cd ..
-
-
+ pwd && cd ..
+ ls
+
- name: upload to s3
uses: shallwefootball/s3-upload-action@master
with:
From 05c08b9ee349998cd0fcb8f4b6f066721c855f85 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 3 Apr 2023 16:56:11 +0530
Subject: [PATCH 043/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index 789fac9..73f247d 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -12,6 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
+ - uses: actions/checkout@v2
- name: make folder
run: mkdir -p folder && cd folder
@@ -35,10 +36,10 @@ jobs:
});
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
- - uses: actions/checkout@v2
+
- name: check
run: |
- pwd && cd ..
+ pwd
ls
- name: upload to s3
From fddd38da827ea836db8108bfd3f816592745c156 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 6 Apr 2023 10:44:47 +0530
Subject: [PATCH 044/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 2396ea9..a91514f 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -35,7 +35,7 @@ jobs:
path: artifacts/
test:
- name: Unit test
+ name: Unit test1
runs-on: ubuntu-latest
steps:
From e9936b70afba494ff02563b7b1688aefb0472f94 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 18:24:05 +0530
Subject: [PATCH 045/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index 73f247d..bb24794 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -1,10 +1,10 @@
name: Artifact handling
-on:
- workflow_run:
- workflows: [Java CI with maven]
- types:
- - completed
+# on:
+ #workflow_run:
+ #workflows: [Java CI with maven]
+ # types:
+ # - completed
jobs:
From 044fa32fb4944adce4850719a35719be3aa83460 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 18:37:08 +0530
Subject: [PATCH 046/155] Create pipeline3.yml
---
.github/workflows/pipeline3.yml | 55 +++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
create mode 100644 .github/workflows/pipeline3.yml
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
new file mode 100644
index 0000000..9303aef
--- /dev/null
+++ b/.github/workflows/pipeline3.yml
@@ -0,0 +1,55 @@
+name: Artifact handling
+
+on:
+ workflow_run:
+ workflows: [Java CI with maven]
+ types:
+ - completed
+
+jobs:
+
+ download:
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: make folder
+ run: mkdir -p folder && cd folder
+
+ - name: Download arifact from previous workflow
+ uses: actions/github-script@v6
+ with:
+ script: |
+ let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ run_id: context.payload.workflow_run.id,
+ });
+ let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
+ return artifact.name == "artifact1"
+ })[0];
+ let download = await github.rest.actions.downloadArtifact({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ artifact_id: matchArtifact.id,
+ archive_format: 'zip',
+ });
+ let fs = require('fs');
+ fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
+
+ upload:
+
+ runs_on: ubuntu-latest
+ env:
+ CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
+ CI_COMMIT_AUTHOR: Continuous Integration
+ steps:
+ - uses: actions/checkout@v2
+ - name: upload to git branch
+ run: |
+ git branch artefacts-store
+ git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
+ git config --global user.email "username@users.noreply.github.com"
+ git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
+ git push
+
From cee6bcbc469878ac64b8c656bca376af63bcbace Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 18:41:20 +0530
Subject: [PATCH 047/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 9303aef..06f5af5 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -39,7 +39,7 @@ jobs:
upload:
- runs_on: ubuntu-latest
+ runs-on: ubuntu-latest
env:
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
CI_COMMIT_AUTHOR: Continuous Integration
From e0171ba126c04283284d555b4327698374d9bc4d Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 18:49:14 +0530
Subject: [PATCH 048/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 16 ++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 06f5af5..a65c596 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -11,6 +11,9 @@ jobs:
download:
runs-on: ubuntu-latest
+ env:
+ CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
+ CI_COMMIT_AUTHOR: Continuous Integration
steps:
- uses: actions/checkout@v2
- name: make folder
@@ -36,20 +39,13 @@ jobs:
});
let fs = require('fs');
fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
-
- upload:
-
- runs-on: ubuntu-latest
- env:
- CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
- CI_COMMIT_AUTHOR: Continuous Integration
- steps:
- - uses: actions/checkout@v2
+
- name: upload to git branch
run: |
- git branch artefacts-store
+ git checkout -b artefacts-store
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
+ git add
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
From eb1d93f80c37d85614dd20fe834bf047e3ce9c1f Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 18:53:52 +0530
Subject: [PATCH 049/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index a91514f..e00ef0e 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -10,7 +10,7 @@ jobs:
build:
runs-on: ubuntu-latest
- needs: test
+ #needs: test
steps:
- uses: actions/checkout@v2
From 5c3aa75a18dc2a1e035d9376b8f27e0e5be4eb6a Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 18:55:58 +0530
Subject: [PATCH 050/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index a65c596..aacdb22 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -42,10 +42,10 @@ jobs:
- name: upload to git branch
run: |
- git checkout -b artefacts-store
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
- git add
+ git checkout -b artefacts-store
+ git add .
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push
From 245d84d593acfcd441d674e19810a718abad5001 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:01:41 +0530
Subject: [PATCH 051/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index e00ef0e..3ef7c65 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -3,8 +3,8 @@ name: Java CI with maven
on:
push:
branches: [master]
- pull_request:
- branches: [master]
+ #pull_request:
+ # branches: [master]
jobs:
build:
From 1b099c4714f5534911af2e01bf9517abef48e516 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:08:30 +0530
Subject: [PATCH 052/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index aacdb22..caa71f8 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -44,6 +44,7 @@ jobs:
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
+ git clone https://github.com/Ankit1Kumar/hello-spring.git
git checkout -b artefacts-store
git add .
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
From eaadb613b8f053a3cfdc6cac9f830a6f14a04911 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:12:33 +0530
Subject: [PATCH 053/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index caa71f8..03d0a97 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -48,5 +48,5 @@ jobs:
git checkout -b artefacts-store
git add .
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git push
+ git push https://github.com/Ankit1Kumar/hello-spring.git
From e635abbfe84e065781e064272f7e223bcf2e081b Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:14:42 +0530
Subject: [PATCH 054/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 03d0a97..b822771 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -46,6 +46,8 @@ jobs:
git config --global user.email "username@users.noreply.github.com"
git clone https://github.com/Ankit1Kumar/hello-spring.git
git checkout -b artefacts-store
+ pwd
+ ls
git add .
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push https://github.com/Ankit1Kumar/hello-spring.git
From a70a673de36aabb5459b83a8b097afae354e0834 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:21:50 +0530
Subject: [PATCH 055/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index b822771..4474314 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -15,9 +15,13 @@ jobs:
CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
CI_COMMIT_AUTHOR: Continuous Integration
steps:
- - uses: actions/checkout@v2
- - name: make folder
- run: mkdir -p folder && cd folder
+ - name: clone
+ run: |
+ git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
+ git config --global user.email "username@users.noreply.github.com"
+ git clone https://github.com/Ankit1Kumar/hello-spring.git
+ git checkout -b artefacts-store
+ mkdir -p folder && cd folder
- name: Download arifact from previous workflow
uses: actions/github-script@v6
@@ -42,10 +46,6 @@ jobs:
- name: upload to git branch
run: |
- git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
- git config --global user.email "username@users.noreply.github.com"
- git clone https://github.com/Ankit1Kumar/hello-spring.git
- git checkout -b artefacts-store
pwd
ls
git add .
From 478d6283e88f723d67e482df65a98e1b3da4b699 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:27:23 +0530
Subject: [PATCH 056/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 4474314..4657cd4 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -12,13 +12,14 @@ jobs:
runs-on: ubuntu-latest
env:
- CI_COMMIT_MESSAGE: Continuous Integration Build Artifacts
- CI_COMMIT_AUTHOR: Continuous Integration
+ CI_COMMIT_MESSAGE: Commit ho rha hai
+ CI_COMMIT_AUTHOR: Ankit Author
steps:
- name: clone
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
+ git init
git clone https://github.com/Ankit1Kumar/hello-spring.git
git checkout -b artefacts-store
mkdir -p folder && cd folder
From 7e57d68216b57f7334d6c209da102c843c572ba2 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:34:53 +0530
Subject: [PATCH 057/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 4657cd4..cca200c 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -22,7 +22,8 @@ jobs:
git init
git clone https://github.com/Ankit1Kumar/hello-spring.git
git checkout -b artefacts-store
- mkdir -p folder && cd folder
+ mkdir -p folder
+ cd folder
- name: Download arifact from previous workflow
uses: actions/github-script@v6
From d270270e36e21adea28ed2a24c7f9e27bce61a06 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:38:51 +0530
Subject: [PATCH 058/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index cca200c..2acf6c5 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -50,7 +50,8 @@ jobs:
run: |
pwd
ls
- git add .
+ cp artifact1.zip folder/
+ git add folder
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git push https://github.com/Ankit1Kumar/hello-spring.git
From 378b14d0622d5a4c5fe6d03cd764b89d86c9a9e2 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:41:52 +0530
Subject: [PATCH 059/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 2acf6c5..44d5855 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -53,5 +53,6 @@ jobs:
cp artifact1.zip folder/
git add folder
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git push https://github.com/Ankit1Kumar/hello-spring.git
+ git push --set-upstream https://github.com/Ankit1Kumar/hello-spring.git artefacts-store
+
From b21863b47c0aa89c0a21fc93a5be91175b0e2fc8 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:45:20 +0530
Subject: [PATCH 060/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 44d5855..ea677f4 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -53,6 +53,6 @@ jobs:
cp artifact1.zip folder/
git add folder
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git push --set-upstream https://github.com/Ankit1Kumar/hello-spring.git artefacts-store
+ git push https://github.com/Ankit1Kumar/hello-spring.git
From 7a85ccbfccc398ac2a7f6e89ab6905191d496a0b Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Wed, 12 Apr 2023 19:50:08 +0530
Subject: [PATCH 061/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index ea677f4..e0e68c3 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -53,6 +53,6 @@ jobs:
cp artifact1.zip folder/
git add folder
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git push https://github.com/Ankit1Kumar/hello-spring.git
+ git push -u origin master
From b0e3987ded1af8197c1557212c4af11de8221063 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 10:33:13 +0530
Subject: [PATCH 062/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index e0e68c3..aaafca8 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -53,6 +53,6 @@ jobs:
cp artifact1.zip folder/
git add folder
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git push -u origin master
+ git push -u origin --all
From c2392c2b5ebc924f865e63a6f716a8b5861c8b75 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 10:50:21 +0530
Subject: [PATCH 063/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index aaafca8..b6bc5c0 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -14,14 +14,15 @@ jobs:
env:
CI_COMMIT_MESSAGE: Commit ho rha hai
CI_COMMIT_AUTHOR: Ankit Author
+ REPO_KEY: ${{secrets.ACCESS_TOKEN}}
steps:
- name: clone
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
- git init
- git clone https://github.com/Ankit1Kumar/hello-spring.git
- git checkout -b artefacts-store
+ #git init
+ #git clone https://github.com/Ankit1Kumar/hello-spring.git
+ #git checkout -b artefacts-store
mkdir -p folder
cd folder
@@ -53,6 +54,7 @@ jobs:
cp artifact1.zip folder/
git add folder
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git push -u origin --all
+ git remote set-url origin https://github.com/Ankit1Kumar/hello-spring.git
+ git push -u origin artefacts-store
From 6c23fecc79084032b7c8b58923499b31485e0c3d Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 10:57:04 +0530
Subject: [PATCH 064/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index b6bc5c0..ee86c34 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -20,7 +20,7 @@ jobs:
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
- #git init
+ git init
#git clone https://github.com/Ankit1Kumar/hello-spring.git
#git checkout -b artefacts-store
mkdir -p folder
From a57f42586ff53657619c78e24eb3fc638f9e79d5 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 11:01:48 +0530
Subject: [PATCH 065/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index ee86c34..ce1a163 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -52,9 +52,10 @@ jobs:
pwd
ls
cp artifact1.zip folder/
+ git status
git add folder
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote set-url origin https://github.com/Ankit1Kumar/hello-spring.git
+ git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
git push -u origin artefacts-store
From 231ea4137f06a3398cc1b6c94554e50337db3b5d Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 11:04:33 +0530
Subject: [PATCH 066/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index ce1a163..1121468 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -51,9 +51,8 @@ jobs:
run: |
pwd
ls
- cp artifact1.zip folder/
git status
- git add folder
+ git add artifact1.zip
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
git push -u origin artefacts-store
From d12dd33b5f94a56bd351455bd574e62a39f3a615 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 11:07:20 +0530
Subject: [PATCH 067/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 1121468..c8300b3 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -53,8 +53,9 @@ jobs:
ls
git status
git add artifact1.zip
+ git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
+ git remote set-url origin https://github.com/Ankit1Kumar/hello-spring.git
git push -u origin artefacts-store
From b175287f1e5b36f1e93cd6d49f0773a3f2767c65 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 11:13:10 +0530
Subject: [PATCH 068/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index c8300b3..40f97d4 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -55,7 +55,6 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote set-url origin https://github.com/Ankit1Kumar/hello-spring.git
- git push -u origin artefacts-store
+ git push https://github.com/Ankit1Kumar/hello-spring.git artefacts-store
From b4fe51305329993d04c3d716630eff7661c8fbf8 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 11:18:02 +0530
Subject: [PATCH 069/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 40f97d4..a37781f 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -22,7 +22,7 @@ jobs:
git config --global user.email "username@users.noreply.github.com"
git init
#git clone https://github.com/Ankit1Kumar/hello-spring.git
- #git checkout -b artefacts-store
+ git checkout -b artefacts-store
mkdir -p folder
cd folder
From d4a478ac6af1b204b703424442cec0db2dc77889 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 11:36:22 +0530
Subject: [PATCH 070/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index a37781f..00f51d5 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -55,6 +55,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git push https://github.com/Ankit1Kumar/hello-spring.git artefacts-store
+ git remote add origin https://github.com/Ankit1Kumar/hello-spring.git
+ git push origin master
From f941f6846e47eb4f0b0767b72d84853a6b0ae80d Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 11:41:42 +0530
Subject: [PATCH 071/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 00f51d5..5eb4221 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -22,7 +22,7 @@ jobs:
git config --global user.email "username@users.noreply.github.com"
git init
#git clone https://github.com/Ankit1Kumar/hello-spring.git
- git checkout -b artefacts-store
+ #git checkout -b artefacts-store
mkdir -p folder
cd folder
@@ -55,7 +55,8 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
+ git branch -M main
git remote add origin https://github.com/Ankit1Kumar/hello-spring.git
- git push origin master
+ git push origin main
From 9033957ec68f21bf8cc686ae0671f628a9ec36d8 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 11:48:39 +0530
Subject: [PATCH 072/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 5eb4221..9d6ae2e 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -52,11 +52,11 @@ jobs:
pwd
ls
git status
+ git checkout -b artefacts-store
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git branch -M main
git remote add origin https://github.com/Ankit1Kumar/hello-spring.git
- git push origin main
+ git push origin artefacts-store
From 84b3261b2568e7e4b285e1267f3dfa08de453b6a Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 11:56:28 +0530
Subject: [PATCH 073/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 9d6ae2e..fac0110 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -56,7 +56,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://github.com/Ankit1Kumar/hello-spring.git
+ git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From 659130f3aabb1fe261fa0e442d675d490d42c78d Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 12:00:18 +0530
Subject: [PATCH 074/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index fac0110..39916e7 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -52,11 +52,11 @@ jobs:
pwd
ls
git status
- git checkout -b artefacts-store
+ #git checkout -b artefacts-store
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
- git push origin artefacts-store
+ git push origin master
From ae1a639511f879f9606f8e48bf5768d322558c0e Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 12:11:32 +0530
Subject: [PATCH 075/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 39916e7..7cd03c6 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -21,8 +21,6 @@ jobs:
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "username@users.noreply.github.com"
git init
- #git clone https://github.com/Ankit1Kumar/hello-spring.git
- #git checkout -b artefacts-store
mkdir -p folder
cd folder
@@ -52,11 +50,12 @@ jobs:
pwd
ls
git status
- #git checkout -b artefacts-store
+ git checkout -b artefacts-store
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
- git push origin master
+ git remote add origin https://github.com:/repo-owner/repo-name.git
+ #git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
+ git push origin artefacts-store
From 929e4ca4e6b033ee12b13a56b645637698d97fb9 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 12:13:32 +0530
Subject: [PATCH 076/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 7cd03c6..e73ad73 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,7 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://github.com:/repo-owner/repo-name.git
+ git remote add origin https://env.REPO_KEY@github.com:/repo-owner/repo-name.git
#git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From 5bf2ef9e50b29bc2d6217d1efbe7b18850f82354 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 12:29:31 +0530
Subject: [PATCH 077/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index e73ad73..7cd03c6 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,7 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://env.REPO_KEY@github.com:/repo-owner/repo-name.git
+ git remote add origin https://github.com:/repo-owner/repo-name.git
#git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From 7577824f79d8dd08cc9b2743df9db9151bb02173 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 12:32:17 +0530
Subject: [PATCH 078/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 7cd03c6..008fcb5 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,7 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://github.com:/repo-owner/repo-name.git
+ git remote add origin https://github.com/Ankit1Kumar/hello-spring.git
#git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From 623a697549504e87a405c93346826a7d636ea80c Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 12:37:34 +0530
Subject: [PATCH 079/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 008fcb5..8a79960 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,6 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
+ git remote rm origin
git remote add origin https://github.com/Ankit1Kumar/hello-spring.git
#git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From b1fc73256c2b1b266e7f5ada1714c3ab92ecc810 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 12:40:32 +0530
Subject: [PATCH 080/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 8a79960..69dfe80 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,8 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote rm origin
- git remote add origin https://github.com/Ankit1Kumar/hello-spring.git
+ git remote add origin git@github.com:Ankit1Kumar/hello-spring.git
#git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From f5b8aa05bb96a641f32f0230918e639c1e5f38d8 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 13:33:07 +0530
Subject: [PATCH 081/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 69dfe80..665d2e5 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,8 +54,8 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin git@github.com:Ankit1Kumar/hello-spring.git
- #git remote set-url origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
+ git remote add origin https://github.com/Ankit1Kumar/hello-spring.git
+ #git remote set-url origin https://Ankit1Kumar@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From 90567ad566067baa6f0d4121202e82ba76e1bb69 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 13:35:08 +0530
Subject: [PATCH 082/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 665d2e5..b808b78 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,7 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://github.com/Ankit1Kumar/hello-spring.git
+ git remote add origin https://Ankit1Kumar@github.com/Ankit1Kumar/hello-spring.git
#git remote set-url origin https://Ankit1Kumar@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From e0edb5b30c4a7ac8f1bb57f5ceaca5ed8bbd8370 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 13:37:12 +0530
Subject: [PATCH 083/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index b808b78..3c7b7a4 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,7 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://Ankit1Kumar@github.com/Ankit1Kumar/hello-spring.git
+ git remote add origin https://Ankit1Kumar:Kitna@123@github.com/Ankit1Kumar/hello-spring.git
#git remote set-url origin https://Ankit1Kumar@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From eb9a3d655e11db4f654ee5fb562704a5265e8218 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 13:41:18 +0530
Subject: [PATCH 084/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 3c7b7a4..23f550d 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,7 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://Ankit1Kumar:Kitna@123@github.com/Ankit1Kumar/hello-spring.git
+ git remote add origin https://Ankit1Kumar:Kitna8969@github.com/Ankit1Kumar/hello-spring.git
#git remote set-url origin https://Ankit1Kumar@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From c3c81ed0177d5664568e8d9cba64c89beac3456b Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 13:45:49 +0530
Subject: [PATCH 085/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 23f550d..e3df947 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,7 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://Ankit1Kumar:Kitna8969@github.com/Ankit1Kumar/hello-spring.git
+ git remote add origin https://Ankit1Kumar:env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
#git remote set-url origin https://Ankit1Kumar@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From 79c4ac44472e4df2e684fddf0b114cc5035ca16e Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 13:47:59 +0530
Subject: [PATCH 086/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index e3df947..f08741a 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,7 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://Ankit1Kumar:env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
+ git remote add origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
#git remote set-url origin https://Ankit1Kumar@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From fad5aa73b375c7bcebe3d9722c8d53da23df4b68 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 13:51:24 +0530
Subject: [PATCH 087/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index f08741a..4d559cf 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -54,7 +54,7 @@ jobs:
git add artifact1.zip
git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://env.REPO_KEY@github.com/Ankit1Kumar/hello-spring.git
+ git remote add origin https://${{secrets.ACCESS_TOKEN}}@github.com/Ankit1Kumar/hello-spring.git
#git remote set-url origin https://Ankit1Kumar@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From 27a7e783fd59f2138979c2f5d0a1544d9571035e Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 14:00:27 +0530
Subject: [PATCH 088/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 22 +++++++---------------
1 file changed, 7 insertions(+), 15 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 4d559cf..a842d34 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -12,17 +12,11 @@ jobs:
runs-on: ubuntu-latest
env:
- CI_COMMIT_MESSAGE: Commit ho rha hai
- CI_COMMIT_AUTHOR: Ankit Author
- REPO_KEY: ${{secrets.ACCESS_TOKEN}}
+ CI_COMMIT_MESSAGE: Commited generated artifact
+ CI_COMMIT_AUTHOR: Ankit Kumar
+ CI_COMMIT_EMAIL: ankit.k@beehyv.com
+
steps:
- - name: clone
- run: |
- git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
- git config --global user.email "username@users.noreply.github.com"
- git init
- mkdir -p folder
- cd folder
- name: Download arifact from previous workflow
uses: actions/github-script@v6
@@ -47,15 +41,13 @@ jobs:
- name: upload to git branch
run: |
- pwd
- ls
- git status
+ git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
+ git config --global user.email "{{ env.CI_COMMIT_EMAIL }}"
+ git init
git checkout -b artefacts-store
git add artifact1.zip
- git status
git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
git remote add origin https://${{secrets.ACCESS_TOKEN}}@github.com/Ankit1Kumar/hello-spring.git
- #git remote set-url origin https://Ankit1Kumar@github.com/Ankit1Kumar/hello-spring.git
git push origin artefacts-store
From dd084364f38b3f91650191b506ced70f20f637a5 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 14:03:39 +0530
Subject: [PATCH 089/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index a842d34..6ccc570 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
env:
- CI_COMMIT_MESSAGE: Commited generated artifact
+ CI_COMMIT_MESSAGE: Commiting generated artifact
CI_COMMIT_AUTHOR: Ankit Kumar
CI_COMMIT_EMAIL: ankit.k@beehyv.com
From 832f8962df547fb2eaa30451e7fa349a682a67c9 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 14:06:14 +0530
Subject: [PATCH 090/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 3ef7c65..e00ef0e 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -3,8 +3,8 @@ name: Java CI with maven
on:
push:
branches: [master]
- #pull_request:
- # branches: [master]
+ pull_request:
+ branches: [master]
jobs:
build:
From c32000ebdea7e613aee5f94909f48989c8a2f68e Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 14:09:13 +0530
Subject: [PATCH 091/155] Update pipeline2.yml
---
.github/workflows/pipeline2.yml | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
index bb24794..a4d0eff 100644
--- a/.github/workflows/pipeline2.yml
+++ b/.github/workflows/pipeline2.yml
@@ -1,10 +1,6 @@
name: Artifact handling
-# on:
- #workflow_run:
- #workflows: [Java CI with maven]
- # types:
- # - completed
+on: workflow_dispatch
jobs:
From f7f5d718e5940545b56b7401cf496d3d6e271a9b Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 13 Apr 2023 14:11:59 +0530
Subject: [PATCH 092/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index e00ef0e..a91514f 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -10,7 +10,7 @@ jobs:
build:
runs-on: ubuntu-latest
- #needs: test
+ needs: test
steps:
- uses: actions/checkout@v2
From a0145413acf7f838bf3ccc1bdba8f1abe6759c2f Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 13:22:05 +0530
Subject: [PATCH 093/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 6ccc570..f264bdb 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -22,22 +22,27 @@ jobs:
uses: actions/github-script@v6
with:
script: |
- let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
- owner: context.repo.owner,
- repo: context.repo.repo,
- run_id: context.payload.workflow_run.id,
+ let allArtifacts = await github.rest.actions.listArtifactsForRepo({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "artifact1"
+ return artifact.name == "build-artifact";
})[0];
- let download = await github.rest.actions.downloadArtifact({
- owner: context.repo.owner,
- repo: context.repo.repo,
- artifact_id: matchArtifact.id,
- archive_format: 'zip',
- });
- let fs = require('fs');
- fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
+
+ if (matchArtifact) {
+ let download = await github.rest.actions.downloadArtifact({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ artifact_id: matchArtifact.id,
+ archive_format: 'zip',
+ });
+
+ let fs = require('fs');
+ fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/build.zip`, Buffer.from(download.data));
+ } else {
+ console.error('Artifact not found');
+ }
- name: upload to git branch
run: |
From 194b87104e269b5775f1ffa765562ab1ef210c31 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 13:25:15 +0530
Subject: [PATCH 094/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index f264bdb..3b67650 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -27,7 +27,7 @@ jobs:
repo: context.repo.repo,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "build-artifact";
+ return artifact.name == "artifact1";
})[0];
if (matchArtifact) {
@@ -39,7 +39,7 @@ jobs:
});
let fs = require('fs');
- fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/build.zip`, Buffer.from(download.data));
+ fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
} else {
console.error('Artifact not found');
}
From 9e2280456815dc742a3cfed0a51f5e7e14c879b4 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 17:34:42 +0530
Subject: [PATCH 095/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index a91514f..e1ee9c6 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -31,7 +31,7 @@ jobs:
- name: Storing artifact
uses: actions/upload-artifact@v3
with:
- name: artifact1
+ name: artifact1-${{ github.ref_slug }}
path: artifacts/
test:
From f731def33dbd9f08b105866018204a95f83c2fbe Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 17:47:02 +0530
Subject: [PATCH 096/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index e1ee9c6..2fc1104 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -28,11 +28,20 @@ jobs:
mkdir artifacts && cp target/*.jar artifacts
cd artifacts
- - name: Storing artifact
+ - name: Extract branch name
+ run: |
+ BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')
+ echo "Branch name: $BRANCH_NAME"
+
+ - name: Upload artifact
uses: actions/upload-artifact@v3
with:
- name: artifact1-${{ github.ref_slug }}
+ name: artifact1-${BRANCH_NAME}
path: artifacts/
+
+ - name: Print artifact name
+ run: |
+ echo "Artifact name: artifact1-${BRANCH_NAME}"
test:
name: Unit test1
From a77fbab328056da4849b2a3d2b92274bfc231689 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 17:53:46 +0530
Subject: [PATCH 097/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 2fc1104..6d03c97 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -30,18 +30,18 @@ jobs:
- name: Extract branch name
run: |
- BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')
- echo "Branch name: $BRANCH_NAME"
+ BRANCH_NAME=$(echo "${{ github.ref_slug }}" >> $GITHUB_ENV
+ echo "Branch name: $BRANCH_NAME"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
- name: artifact1-${BRANCH_NAME}
+ name: artifact1-${{ env.BRANCH_NAME }}
path: artifacts/
- name: Print artifact name
run: |
- echo "Artifact name: artifact1-${BRANCH_NAME}"
+ echo "Artifact name: artifact1--${{ env.BRANCH_NAME }}"
test:
name: Unit test1
From 068bbd4a461f7b632b78b8566804013a44fd1659 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 17:56:48 +0530
Subject: [PATCH 098/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 6d03c97..286c728 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -30,7 +30,7 @@ jobs:
- name: Extract branch name
run: |
- BRANCH_NAME=$(echo "${{ github.ref_slug }}" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ github.ref_slug }}")" >> $GITHUB_ENV
echo "Branch name: $BRANCH_NAME"
- name: Upload artifact
From 97463024a0f36e4616f4b7f9871498188ebef9e7 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 17:59:34 +0530
Subject: [PATCH 099/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 286c728..a747095 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -28,10 +28,9 @@ jobs:
mkdir artifacts && cp target/*.jar artifacts
cd artifacts
- - name: Extract branch name
+ - name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ github.ref_slug }}")" >> $GITHUB_ENV
- echo "Branch name: $BRANCH_NAME"
+ echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v3
From 6aada1fc5ba150f35991b379b02eff8c36c39527 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 18:09:13 +0530
Subject: [PATCH 100/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index a747095..6ca1706 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -1,10 +1,9 @@
name: Java CI with maven
on:
- push:
- branches: [master]
pull_request:
branches: [master]
+ workflow_dispatch:
jobs:
build:
From b63ca13a587aaef3595097764769007eb0d35b02 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 18:30:26 +0530
Subject: [PATCH 101/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 6ca1706..5a6e37f 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -29,7 +29,7 @@ jobs:
- name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ github.head_ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v3
From 64b1e8fcf931c571b9d27707ea911703e68a16ad Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 18:32:37 +0530
Subject: [PATCH 102/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 5a6e37f..6ca1706 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -29,7 +29,7 @@ jobs:
- name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ github.head_ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v3
From da46efae990da45c69ec91a3d6182f2179401352 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 18:33:38 +0530
Subject: [PATCH 103/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 3b67650..96af9eb 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -27,7 +27,7 @@ jobs:
repo: context.repo.repo,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "artifact1";
+ return artifact.name == "artifact1-";
})[0];
if (matchArtifact) {
From 9d97221a108aba013f2a3465ca85a5ac64f95a55 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 18:37:15 +0530
Subject: [PATCH 104/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 96af9eb..fea1eef 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -5,6 +5,7 @@ on:
workflows: [Java CI with maven]
types:
- completed
+ workflow_dispatch:
jobs:
@@ -27,7 +28,7 @@ jobs:
repo: context.repo.repo,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "artifact1-";
+ return artifact.name == "artifact1-dgrtjhtghfgrthyj";
})[0];
if (matchArtifact) {
From f4ea41fba613fb66b21417e07c66b848b8a92573 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 18:38:42 +0530
Subject: [PATCH 105/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 6ca1706..0eb2d6a 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -1,6 +1,8 @@
name: Java CI with maven
on:
+ push:
+ branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
From 3689e584dd37e26c9333eac387922de1ca8e84ef Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 18:45:13 +0530
Subject: [PATCH 106/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index fea1eef..c16dabc 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -18,7 +18,9 @@ jobs:
CI_COMMIT_EMAIL: ankit.k@beehyv.com
steps:
-
+ - name: Set branch name
+ run: |
+ echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
- name: Download arifact from previous workflow
uses: actions/github-script@v6
with:
@@ -28,7 +30,7 @@ jobs:
repo: context.repo.repo,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "artifact1-dgrtjhtghfgrthyj";
+ return artifact.name == "artifact1-{{ env.BRANCH_NAME }}";
})[0];
if (matchArtifact) {
From 858507b021dd5513354a07f0eaa0d904a1de29d6 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 18:49:35 +0530
Subject: [PATCH 107/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index c16dabc..c827741 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -20,7 +20,8 @@ jobs:
steps:
- name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
+ echo $BRANCH_NAME
- name: Download arifact from previous workflow
uses: actions/github-script@v6
with:
@@ -30,7 +31,7 @@ jobs:
repo: context.repo.repo,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "artifact1-{{ env.BRANCH_NAME }}";
+ return artifact.name == "artifact1--${{ env.BRANCH_NAME }}";
})[0];
if (matchArtifact) {
From bf07facb4fde7607fab713e7ef3c00de16fc6fa9 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 18:53:56 +0530
Subject: [PATCH 108/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index c827741..2a55d4c 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -21,7 +21,7 @@ jobs:
- name: Set branch name
run: |
echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
- echo $BRANCH_NAME
+ echo "artifact1-${{ env.BRANCH_NAME }}"
- name: Download arifact from previous workflow
uses: actions/github-script@v6
with:
@@ -31,7 +31,7 @@ jobs:
repo: context.repo.repo,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "artifact1--${{ env.BRANCH_NAME }}";
+ return artifact.name == "artifact1-${{ env.BRANCH_NAME }}";
})[0];
if (matchArtifact) {
From 0455aa541f13afc56c390283a854359b4952b2b0 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 19:19:40 +0530
Subject: [PATCH 109/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 --
1 file changed, 2 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 0eb2d6a..6ca1706 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -1,8 +1,6 @@
name: Java CI with maven
on:
- push:
- branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
From cc24d652478d5650bc67fb4ab19618a370c9f366 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 19:23:16 +0530
Subject: [PATCH 110/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 16 ++++------------
1 file changed, 4 insertions(+), 12 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 2a55d4c..c859ca5 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -22,6 +22,9 @@ jobs:
run: |
echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
echo "artifact1-${{ env.BRANCH_NAME }}"
+ - name: Print artifact name
+ run: |
+ echo "Artifact name: artifact1-${{ env.BRANCH_NAME }}"
- name: Download arifact from previous workflow
uses: actions/github-script@v6
with:
@@ -48,15 +51,4 @@ jobs:
console.error('Artifact not found');
}
- - name: upload to git branch
- run: |
- git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
- git config --global user.email "{{ env.CI_COMMIT_EMAIL }}"
- git init
- git checkout -b artefacts-store
- git add artifact1.zip
- git commit -a -m "${{ env.CI_COMMIT_MESSAGE }}"
- git remote add origin https://${{secrets.ACCESS_TOKEN}}@github.com/Ankit1Kumar/hello-spring.git
- git push origin artefacts-store
-
-
+
From 499fdaa05b0f09614c245f703bddd05f57f237a7 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 19:25:29 +0530
Subject: [PATCH 111/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 6ca1706..0eb2d6a 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -1,6 +1,8 @@
name: Java CI with maven
on:
+ push:
+ branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
From 1ddaeabf777251fc5f2b57d6388b587cafb9d4b1 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 19:49:27 +0530
Subject: [PATCH 112/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index c859ca5..b0353b2 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -24,7 +24,7 @@ jobs:
echo "artifact1-${{ env.BRANCH_NAME }}"
- name: Print artifact name
run: |
- echo "Artifact name: artifact1-${{ env.BRANCH_NAME }}"
+ echo "Artifact name: artifact1-${{ github.workflow_ref }}"
- name: Download arifact from previous workflow
uses: actions/github-script@v6
with:
From 26998f47a5427d9aac3531acdcf9b896ed3c6957 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 20:09:40 +0530
Subject: [PATCH 113/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index b0353b2..a2084b5 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -20,11 +20,11 @@ jobs:
steps:
- name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ github.event.workflow_run.head_branch }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
echo "artifact1-${{ env.BRANCH_NAME }}"
- name: Print artifact name
run: |
- echo "Artifact name: artifact1-${{ github.workflow_ref }}"
+ echo "Artifact name: artifact1-${{ github.event.workflow_run.head_branch }}"
- name: Download arifact from previous workflow
uses: actions/github-script@v6
with:
From fc5f6af6d52dca63e3d061f56efe3ce9f73c26a5 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 20:37:00 +0530
Subject: [PATCH 114/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index a2084b5..dee9763 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -18,13 +18,16 @@ jobs:
CI_COMMIT_EMAIL: ankit.k@beehyv.com
steps:
- - name: Set branch name
+ - name: Set branch name when workflow dispatch
run: |
- echo "BRANCH_NAME=$(echo "${{ github.event.workflow_run.head_branch }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
- echo "artifact1-${{ env.BRANCH_NAME }}"
+ if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
+ echo "BRANCH_NAME=$(echo "${{ github.event.workflow_run.head_branch }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
+ else
+ echo "BRANCH_NAME=$(echo "${{ github.event.workflow_run.head_branch }}")" >> $GITHUB_ENV
+ fi
- name: Print artifact name
run: |
- echo "Artifact name: artifact1-${{ github.event.workflow_run.head_branch }}"
+ echo "Artifact name: artifact1-${{ env.BRANCH_NAME }}"
- name: Download arifact from previous workflow
uses: actions/github-script@v6
with:
From ddd18fe0f5a3f5488ba7745e22ae281035247ad5 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 20:41:33 +0530
Subject: [PATCH 115/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index dee9763..1791d29 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -21,7 +21,7 @@ jobs:
- name: Set branch name when workflow dispatch
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
- echo "BRANCH_NAME=$(echo "${{ github.event.workflow_run.head_branch }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
else
echo "BRANCH_NAME=$(echo "${{ github.event.workflow_run.head_branch }}")" >> $GITHUB_ENV
fi
From 4855ff0781553c055ea82c7edd9b8556ee7d4d15 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 20:53:37 +0530
Subject: [PATCH 116/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 0eb2d6a..ce551ae 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -1,10 +1,11 @@
name: Java CI with maven
on:
- push:
- branches: [master]
+
pull_request:
branches: [master]
+ release:
+ types: [published]
workflow_dispatch:
jobs:
From 2808b303a4452fbabaa6ed67c0d30751d14cac4d Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 24 Nov 2023 20:59:17 +0530
Subject: [PATCH 117/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index ce551ae..54a7b63 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -32,7 +32,7 @@ jobs:
- name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v3
From 9b5c2090bb46413cefacf5cdbd0c9a0653e3a9f0 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 11:45:30 +0530
Subject: [PATCH 118/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 54a7b63..dd2a66e 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -44,22 +44,22 @@ jobs:
run: |
echo "Artifact name: artifact1--${{ env.BRANCH_NAME }}"
- test:
- name: Unit test1
- runs-on: ubuntu-latest
+ # test:
+ # name: Unit test1
+ # runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
+ # steps:
+ # - uses: actions/checkout@v2
- - name: Set up JDK 11
- uses: actions/setup-java@v2
- with:
- java-version: '11'
- distribution: 'adopt'
- cache: maven
+ # - name: Set up JDK 11
+ # uses: actions/setup-java@v2
+ # with:
+ # java-version: '11'
+ # distribution: 'adopt'
+ # cache: maven
- - name: Run Tests
- run: mvn -B test
+ # - name: Run Tests
+ # run: mvn -B test
From d7a216cc71df07d6656dd4a795d2f317fb3cfcbf Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 11:46:11 +0530
Subject: [PATCH 119/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index dd2a66e..5ba638e 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -12,7 +12,7 @@ jobs:
build:
runs-on: ubuntu-latest
- needs: test
+ # needs: test
steps:
- uses: actions/checkout@v2
From 4467239d28f488d4fc97927c80d911d80b93c2cb Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 11:53:58 +0530
Subject: [PATCH 120/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 1791d29..c001041 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -18,6 +18,10 @@ jobs:
CI_COMMIT_EMAIL: ankit.k@beehyv.com
steps:
+ - name: t1
+ run: |
+ echo "${{ github.ref }}"
+ echo "${{ github.event.workflow_run.head_branch }}"
- name: Set branch name when workflow dispatch
run: |
if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
From ad8332d0d68824d0dc468ae6e9007437c4b1173f Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 12:13:59 +0530
Subject: [PATCH 121/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index c001041..54c6d9a 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -41,7 +41,7 @@ jobs:
repo: context.repo.repo,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "artifact1-${{ env.BRANCH_NAME }}";
+ return artifact.name == "artifact1-${{ github.event.workflow_run.head_branch }}";
})[0];
if (matchArtifact) {
From d3e7bf21f1a26926cc666b6b5916cb736b64fba2 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 15:58:58 +0530
Subject: [PATCH 122/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 54c6d9a..a4191aa 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -41,7 +41,7 @@ jobs:
repo: context.repo.repo,
});
let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "artifact1-${{ github.event.workflow_run.head_branch }}";
+ return artifact.name = "artifact1-${{ github.event.workflow_run.head_branch }}";
})[0];
if (matchArtifact) {
From 81452603658e400a9d2d705ad3d3c1b5ed284ed1 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 16:36:43 +0530
Subject: [PATCH 123/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index a4191aa..8baf62b 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -33,6 +33,7 @@ jobs:
run: |
echo "Artifact name: artifact1-${{ env.BRANCH_NAME }}"
- name: Download arifact from previous workflow
+ if: github.event_name != 'workflow_dispatch'
uses: actions/github-script@v6
with:
script: |
From 218340d0e21a832e828dc4a6a8965b1d9ea6eb39 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 17:12:00 +0530
Subject: [PATCH 124/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 5ba638e..d29e7a4 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -1,4 +1,4 @@
-name: Java CI with maven
+name: Java CI with mavend
on:
From c4479e419f440fa919de598db5c19f27eafbe0b2 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 17:13:19 +0530
Subject: [PATCH 125/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index d29e7a4..dfaca19 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -1,7 +1,8 @@
name: Java CI with mavend
on:
-
+ push:
+ branches: [master]
pull_request:
branches: [master]
release:
From e8fc505c81335d1e83fd32d2df67fdb7a24eb3ac Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 17:15:09 +0530
Subject: [PATCH 126/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index dfaca19..1584c7e 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -33,7 +33,7 @@ jobs:
- name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v3
From 47c0c6606f58c359116f24da93587a1b7ffa25f5 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 17:17:17 +0530
Subject: [PATCH 127/155] Update pipeline3.yml
---
.github/workflows/pipeline3.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
index 8baf62b..776fbc9 100644
--- a/.github/workflows/pipeline3.yml
+++ b/.github/workflows/pipeline3.yml
@@ -2,7 +2,7 @@ name: Artifact handling
on:
workflow_run:
- workflows: [Java CI with maven]
+ workflows: [Java CI with mavend]
types:
- completed
workflow_dispatch:
From 39e205af68ad27187f9c04866aed3406d603db71 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Mon, 27 Nov 2023 17:23:41 +0530
Subject: [PATCH 128/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index 1584c7e..dfaca19 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -33,7 +33,7 @@ jobs:
- name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v3
From c98059a98d83f98f57742bd599a1f50a9839cb55 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 1 Dec 2023 16:56:47 +0530
Subject: [PATCH 129/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index dfaca19..a79f755 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -33,7 +33,7 @@ jobs:
- name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ env.GITHUB_WORKFLOW }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v3
From 6cfa9b4a0259373cd8f1f57de5c40ee9f5022833 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 1 Dec 2023 16:59:15 +0530
Subject: [PATCH 130/155] Update pipeline1.yaml
---
.github/workflows/pipeline1.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline1.yaml
index a79f755..d6cbbf4 100644
--- a/.github/workflows/pipeline1.yaml
+++ b/.github/workflows/pipeline1.yaml
@@ -33,7 +33,7 @@ jobs:
- name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ env.GITHUB_WORKFLOW }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "WORKFLOW_NAME=${{ github.event_name }}-${{ github.sha }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
- name: Upload artifact
uses: actions/upload-artifact@v3
From d7d40532bd6e06e95d0fbe44e52cfb1e46a7ca6e Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 1 Feb 2024 18:46:45 +0530
Subject: [PATCH 131/155] Rename pipeline1.yaml to pipeline-random.yaml
---
.github/workflows/{pipeline1.yaml => pipeline-random.yaml} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename .github/workflows/{pipeline1.yaml => pipeline-random.yaml} (100%)
diff --git a/.github/workflows/pipeline1.yaml b/.github/workflows/pipeline-random.yaml
similarity index 100%
rename from .github/workflows/pipeline1.yaml
rename to .github/workflows/pipeline-random.yaml
From 0287d7b183d34a607b9590943611c7a71fe45b00 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 1 Feb 2024 18:47:23 +0530
Subject: [PATCH 132/155] Update pipeline-random.yaml
---
.github/workflows/pipeline-random.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline-random.yaml b/.github/workflows/pipeline-random.yaml
index d6cbbf4..c794bf0 100644
--- a/.github/workflows/pipeline-random.yaml
+++ b/.github/workflows/pipeline-random.yaml
@@ -1,4 +1,4 @@
-name: Java CI with mavend
+name: pipeline-random
on:
push:
From 1fe67802f0195c50708da557590d9348b0f365dc Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 1 Feb 2024 18:48:34 +0530
Subject: [PATCH 133/155] Update pipeline-random.yaml
---
.github/workflows/pipeline-random.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline-random.yaml b/.github/workflows/pipeline-random.yaml
index c794bf0..ba4356a 100644
--- a/.github/workflows/pipeline-random.yaml
+++ b/.github/workflows/pipeline-random.yaml
@@ -1,4 +1,4 @@
-name: pipeline-random
+ name: pipeline-random
on:
push:
From 01501fab2b1ad7d881958bc0e71f24447c0bf1c2 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 1 Feb 2024 18:49:50 +0530
Subject: [PATCH 134/155] Update pipeline-random.yaml
---
.github/workflows/pipeline-random.yaml | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/pipeline-random.yaml b/.github/workflows/pipeline-random.yaml
index ba4356a..bac97d4 100644
--- a/.github/workflows/pipeline-random.yaml
+++ b/.github/workflows/pipeline-random.yaml
@@ -1,12 +1,8 @@
- name: pipeline-random
-
+name: 'Keycloak devops theme update'
on:
push:
- branches: [master]
- pull_request:
- branches: [master]
- release:
- types: [published]
+ branches:
+ - main
workflow_dispatch:
jobs:
From eb8d89541186fc7ace4fc6b41f34ca0bec8fd6c9 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 1 Feb 2024 18:51:57 +0530
Subject: [PATCH 135/155] Update pipeline-random.yaml
---
.github/workflows/pipeline-random.yaml | 69 ++++++++------------------
1 file changed, 22 insertions(+), 47 deletions(-)
diff --git a/.github/workflows/pipeline-random.yaml b/.github/workflows/pipeline-random.yaml
index bac97d4..8cf64d5 100644
--- a/.github/workflows/pipeline-random.yaml
+++ b/.github/workflows/pipeline-random.yaml
@@ -6,57 +6,32 @@ on:
workflow_dispatch:
jobs:
- build:
-
- runs-on: ubuntu-latest
- # needs: test
+ keycloak-theme-update:
+ name: Keycloak theme update
+ runs-on: [aws-devops]
+ environment: infra-devops
steps:
- - uses: actions/checkout@v2
+ - name: Checkout idscience directory
+ uses: actions/checkout@v3
+ with:
+ path: keycloak-theme
- - name: Set up JDK 11
- uses: actions/setup-java@v2
+ - name: Configure AWS Credentials for use
+ uses: aws-actions/configure-aws-credentials@v1
with:
- java-version: '11'
- distribution: 'adopt'
- cache: maven
+ aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
+ aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
+ aws-region: us-east-1
- - name: Build with Maven
+ - name: Set up EFS
+ continue-on-error: true
run: |
- mvn -B package --file pom.xml
- mkdir artifacts && cp target/*.jar artifacts
- cd artifacts
-
- - name: Set branch name
- run: |
- echo "BRANCH_NAME=$(echo "WORKFLOW_NAME=${{ github.event_name }}-${{ github.sha }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
-
- - name: Upload artifact
- uses: actions/upload-artifact@v3
- with:
- name: artifact1-${{ env.BRANCH_NAME }}
- path: artifacts/
+ sudo mkdir -p /keycloak-theme-efs
+ sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-0770f8893b2303ef6.efs.us-east-1.amazonaws.com:/ /keycloak-theme-efs
+ sudo rm -rf /keycloak-theme-efs/*
+ sudo cp -R ./keycloak-theme/idscience/* /keycloak-theme-efs/
+ sudo chmod -R 777 /keycloak-theme-efs
- - name: Print artifact name
- run: |
- echo "Artifact name: artifact1--${{ env.BRANCH_NAME }}"
-
- # test:
- # name: Unit test1
- # runs-on: ubuntu-latest
-
- # steps:
- # - uses: actions/checkout@v2
-
- # - name: Set up JDK 11
- # uses: actions/setup-java@v2
- # with:
- # java-version: '11'
- # distribution: 'adopt'
- # cache: maven
-
- # - name: Run Tests
- # run: mvn -B test
-
-
-
+ - name: unmount efs
+ run: sudo umount /keycloak-theme-efs
From 0afdab54e56ce623924d4618319126431687c1d6 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 1 Feb 2024 18:53:39 +0530
Subject: [PATCH 136/155] Rename pipeline-random.yaml to pipeline2.yaml
---
.github/workflows/{pipeline-random.yaml => pipeline2.yaml} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename .github/workflows/{pipeline-random.yaml => pipeline2.yaml} (100%)
diff --git a/.github/workflows/pipeline-random.yaml b/.github/workflows/pipeline2.yaml
similarity index 100%
rename from .github/workflows/pipeline-random.yaml
rename to .github/workflows/pipeline2.yaml
From f106d23d81c7aa90b6fc51be3c2ba7402a00c0f0 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 1 Feb 2024 18:57:13 +0530
Subject: [PATCH 137/155] Update pipeline2.yaml
---
.github/workflows/pipeline2.yaml | 2 --
1 file changed, 2 deletions(-)
diff --git a/.github/workflows/pipeline2.yaml b/.github/workflows/pipeline2.yaml
index 8cf64d5..607db46 100644
--- a/.github/workflows/pipeline2.yaml
+++ b/.github/workflows/pipeline2.yaml
@@ -3,8 +3,6 @@ on:
push:
branches:
- main
- workflow_dispatch:
-
jobs:
keycloak-theme-update:
name: Keycloak theme update
From 7d32ce44da870f6b6913dcc1d3e4371ea270c4a8 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 1 Feb 2024 18:58:02 +0530
Subject: [PATCH 138/155] Update pipeline2.yaml
---
.github/workflows/pipeline2.yaml | 1 +
1 file changed, 1 insertion(+)
diff --git a/.github/workflows/pipeline2.yaml b/.github/workflows/pipeline2.yaml
index 607db46..b2dfa02 100644
--- a/.github/workflows/pipeline2.yaml
+++ b/.github/workflows/pipeline2.yaml
@@ -3,6 +3,7 @@ on:
push:
branches:
- main
+ workflow_dispatch:
jobs:
keycloak-theme-update:
name: Keycloak theme update
From 1e5c64307894316d06e92d066ba6e0bfe9bfb7e7 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 1 Feb 2024 19:01:52 +0530
Subject: [PATCH 139/155] Update pipeline2.yaml
---
.github/workflows/pipeline2.yaml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/pipeline2.yaml b/.github/workflows/pipeline2.yaml
index b2dfa02..7791430 100644
--- a/.github/workflows/pipeline2.yaml
+++ b/.github/workflows/pipeline2.yaml
@@ -1,4 +1,4 @@
-name: 'Keycloak devops theme update'
+
on:
push:
branches:
From 920b89399c4baea251e1d9764d29402a30e86873 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 26 Apr 2024 16:52:57 +0530
Subject: [PATCH 140/155] Create pipeline4.yaml
---
.github/workflows/pipeline4.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 .github/workflows/pipeline4.yaml
diff --git a/.github/workflows/pipeline4.yaml b/.github/workflows/pipeline4.yaml
new file mode 100644
index 0000000..1ac4dc6
--- /dev/null
+++ b/.github/workflows/pipeline4.yaml
@@ -0,0 +1,14 @@
+name: Trigger on File Creation
+
+on:
+ create:
+ paths:
+ - '.github/workflows/test.yaml'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout Repository
+ run: echo "testing done"
From b408e61613fbe377f8fffcc18f51673eab281d67 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 26 Apr 2024 16:57:30 +0530
Subject: [PATCH 141/155] Create random.yaml
---
.github/workflows/random.yaml | 1 +
1 file changed, 1 insertion(+)
create mode 100644 .github/workflows/random.yaml
diff --git a/.github/workflows/random.yaml b/.github/workflows/random.yaml
new file mode 100644
index 0000000..aa83006
--- /dev/null
+++ b/.github/workflows/random.yaml
@@ -0,0 +1 @@
+random file
From 8af275e8cca4afe05c0250eeeac778ec68780483 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 26 Apr 2024 16:58:56 +0530
Subject: [PATCH 142/155] Create random1.yaml
---
.github/workflows/random1.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 .github/workflows/random1.yaml
diff --git a/.github/workflows/random1.yaml b/.github/workflows/random1.yaml
new file mode 100644
index 0000000..7dd1c5f
--- /dev/null
+++ b/.github/workflows/random1.yaml
@@ -0,0 +1,14 @@
+name: Manual Trigger Workflow
+
+on:
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout Repository
+ uses: actions/checkout@v2
+
+ # Add your actions here that you want to execute when the workflow is manually triggered
From 877a36863d1ba578a421485c139f4d3deff2d884 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 26 Apr 2024 16:59:44 +0530
Subject: [PATCH 143/155] Update random1.yaml
---
.github/workflows/random1.yaml | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/.github/workflows/random1.yaml b/.github/workflows/random1.yaml
index 7dd1c5f..efb3339 100644
--- a/.github/workflows/random1.yaml
+++ b/.github/workflows/random1.yaml
@@ -9,6 +9,4 @@ jobs:
steps:
- name: Checkout Repository
- uses: actions/checkout@v2
-
- # Add your actions here that you want to execute when the workflow is manually triggered
+ run: echo "done"
From e7c29d27f4064859b3346d5ae3c8c17291c5fcfd Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 26 Apr 2024 17:02:37 +0530
Subject: [PATCH 144/155] Create random2.yaml
---
.github/workflows/random2.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 .github/workflows/random2.yaml
diff --git a/.github/workflows/random2.yaml b/.github/workflows/random2.yaml
new file mode 100644
index 0000000..85a4328
--- /dev/null
+++ b/.github/workflows/random2.yaml
@@ -0,0 +1,12 @@
+name: Manual Trigger Workflow
+
+on:
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Echo Message
+ run: echo "Workflow manually triggered."
From 1d3a75238aa9b15862b6d4c673c344c5ea53509d Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 26 Apr 2024 17:07:06 +0530
Subject: [PATCH 145/155] Create try.yml
---
.github/workflows/try.yml | 48 +++++++++++++++++++++++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 .github/workflows/try.yml
diff --git a/.github/workflows/try.yml b/.github/workflows/try.yml
new file mode 100644
index 0000000..7450e93
--- /dev/null
+++ b/.github/workflows/try.yml
@@ -0,0 +1,48 @@
+name: Artifact handling
+
+on: workflow_dispatch
+
+jobs:
+
+ download:
+
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: make folder
+ run: mkdir -p folder && cd folder
+
+ - name: Download arifact from previous workflow
+ uses: actions/github-script@v6
+ with:
+ script: |
+ let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ run_id: context.payload.workflow_run.id,
+ });
+ let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
+ return artifact.name == "artifact1"
+ })[0];
+ let download = await github.rest.actions.downloadArtifact({
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ artifact_id: matchArtifact.id,
+ archive_format: 'zip',
+ });
+ let fs = require('fs');
+ fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
+
+ - name: check
+ run: |
+ pwd
+ ls
+
+ - name: upload to s3
+ uses: shallwefootball/s3-upload-action@master
+ with:
+ aws_key_id: ${{ secrets.AWS_KEY_ID }}
+ aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
+ aws_bucket: ${{ secrets.AWS_BUCKET }}
+ source_dir: folder
+ destination_dir: gha/
From 9ca778515d2442380f2aa1736f31f4e10f02ab19 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 26 Apr 2024 17:09:28 +0530
Subject: [PATCH 146/155] Delete .github/workflows directory
---
.github/workflows/pipeline2.yaml | 36 -------------------
.github/workflows/pipeline2.yml | 49 -------------------------
.github/workflows/pipeline3.yml | 62 --------------------------------
.github/workflows/pipeline4.yaml | 14 --------
.github/workflows/random.yaml | 1 -
.github/workflows/random1.yaml | 12 -------
.github/workflows/random2.yaml | 12 -------
.github/workflows/try.yml | 48 -------------------------
8 files changed, 234 deletions(-)
delete mode 100644 .github/workflows/pipeline2.yaml
delete mode 100644 .github/workflows/pipeline2.yml
delete mode 100644 .github/workflows/pipeline3.yml
delete mode 100644 .github/workflows/pipeline4.yaml
delete mode 100644 .github/workflows/random.yaml
delete mode 100644 .github/workflows/random1.yaml
delete mode 100644 .github/workflows/random2.yaml
delete mode 100644 .github/workflows/try.yml
diff --git a/.github/workflows/pipeline2.yaml b/.github/workflows/pipeline2.yaml
deleted file mode 100644
index 7791430..0000000
--- a/.github/workflows/pipeline2.yaml
+++ /dev/null
@@ -1,36 +0,0 @@
-
-on:
- push:
- branches:
- - main
- workflow_dispatch:
-jobs:
- keycloak-theme-update:
- name: Keycloak theme update
- runs-on: [aws-devops]
- environment: infra-devops
-
- steps:
- - name: Checkout idscience directory
- uses: actions/checkout@v3
- with:
- path: keycloak-theme
-
- - name: Configure AWS Credentials for use
- uses: aws-actions/configure-aws-credentials@v1
- with:
- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- aws-region: us-east-1
-
- - name: Set up EFS
- continue-on-error: true
- run: |
- sudo mkdir -p /keycloak-theme-efs
- sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport fs-0770f8893b2303ef6.efs.us-east-1.amazonaws.com:/ /keycloak-theme-efs
- sudo rm -rf /keycloak-theme-efs/*
- sudo cp -R ./keycloak-theme/idscience/* /keycloak-theme-efs/
- sudo chmod -R 777 /keycloak-theme-efs
-
- - name: unmount efs
- run: sudo umount /keycloak-theme-efs
diff --git a/.github/workflows/pipeline2.yml b/.github/workflows/pipeline2.yml
deleted file mode 100644
index a4d0eff..0000000
--- a/.github/workflows/pipeline2.yml
+++ /dev/null
@@ -1,49 +0,0 @@
-name: Artifact handling
-
-on: workflow_dispatch
-
-jobs:
-
- download:
-
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: make folder
- run: mkdir -p folder && cd folder
-
- - name: Download arifact from previous workflow
- uses: actions/github-script@v6
- with:
- script: |
- let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
- owner: context.repo.owner,
- repo: context.repo.repo,
- run_id: context.payload.workflow_run.id,
- });
- let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "artifact1"
- })[0];
- let download = await github.rest.actions.downloadArtifact({
- owner: context.repo.owner,
- repo: context.repo.repo,
- artifact_id: matchArtifact.id,
- archive_format: 'zip',
- });
- let fs = require('fs');
- fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
-
- - name: check
- run: |
- pwd
- ls
-
- - name: upload to s3
- uses: shallwefootball/s3-upload-action@master
- with:
- aws_key_id: ${{ secrets.AWS_KEY_ID }}
- aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
- aws_bucket: ${{ secrets.AWS_BUCKET }}
- source_dir: folder
- destination_dir: gha/
-
diff --git a/.github/workflows/pipeline3.yml b/.github/workflows/pipeline3.yml
deleted file mode 100644
index 776fbc9..0000000
--- a/.github/workflows/pipeline3.yml
+++ /dev/null
@@ -1,62 +0,0 @@
-name: Artifact handling
-
-on:
- workflow_run:
- workflows: [Java CI with mavend]
- types:
- - completed
- workflow_dispatch:
-
-jobs:
-
- download:
-
- runs-on: ubuntu-latest
- env:
- CI_COMMIT_MESSAGE: Commiting generated artifact
- CI_COMMIT_AUTHOR: Ankit Kumar
- CI_COMMIT_EMAIL: ankit.k@beehyv.com
-
- steps:
- - name: t1
- run: |
- echo "${{ github.ref }}"
- echo "${{ github.event.workflow_run.head_branch }}"
- - name: Set branch name when workflow dispatch
- run: |
- if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
- echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
- else
- echo "BRANCH_NAME=$(echo "${{ github.event.workflow_run.head_branch }}")" >> $GITHUB_ENV
- fi
- - name: Print artifact name
- run: |
- echo "Artifact name: artifact1-${{ env.BRANCH_NAME }}"
- - name: Download arifact from previous workflow
- if: github.event_name != 'workflow_dispatch'
- uses: actions/github-script@v6
- with:
- script: |
- let allArtifacts = await github.rest.actions.listArtifactsForRepo({
- owner: context.repo.owner,
- repo: context.repo.repo,
- });
- let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name = "artifact1-${{ github.event.workflow_run.head_branch }}";
- })[0];
-
- if (matchArtifact) {
- let download = await github.rest.actions.downloadArtifact({
- owner: context.repo.owner,
- repo: context.repo.repo,
- artifact_id: matchArtifact.id,
- archive_format: 'zip',
- });
-
- let fs = require('fs');
- fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
- } else {
- console.error('Artifact not found');
- }
-
-
diff --git a/.github/workflows/pipeline4.yaml b/.github/workflows/pipeline4.yaml
deleted file mode 100644
index 1ac4dc6..0000000
--- a/.github/workflows/pipeline4.yaml
+++ /dev/null
@@ -1,14 +0,0 @@
-name: Trigger on File Creation
-
-on:
- create:
- paths:
- - '.github/workflows/test.yaml'
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout Repository
- run: echo "testing done"
diff --git a/.github/workflows/random.yaml b/.github/workflows/random.yaml
deleted file mode 100644
index aa83006..0000000
--- a/.github/workflows/random.yaml
+++ /dev/null
@@ -1 +0,0 @@
-random file
diff --git a/.github/workflows/random1.yaml b/.github/workflows/random1.yaml
deleted file mode 100644
index efb3339..0000000
--- a/.github/workflows/random1.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-name: Manual Trigger Workflow
-
-on:
- workflow_dispatch:
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout Repository
- run: echo "done"
diff --git a/.github/workflows/random2.yaml b/.github/workflows/random2.yaml
deleted file mode 100644
index 85a4328..0000000
--- a/.github/workflows/random2.yaml
+++ /dev/null
@@ -1,12 +0,0 @@
-name: Manual Trigger Workflow
-
-on:
- workflow_dispatch:
-
-jobs:
- build:
- runs-on: ubuntu-latest
-
- steps:
- - name: Echo Message
- run: echo "Workflow manually triggered."
diff --git a/.github/workflows/try.yml b/.github/workflows/try.yml
deleted file mode 100644
index 7450e93..0000000
--- a/.github/workflows/try.yml
+++ /dev/null
@@ -1,48 +0,0 @@
-name: Artifact handling
-
-on: workflow_dispatch
-
-jobs:
-
- download:
-
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: make folder
- run: mkdir -p folder && cd folder
-
- - name: Download arifact from previous workflow
- uses: actions/github-script@v6
- with:
- script: |
- let allArtifacts = await github.rest.actions.listWorkflowRunArtifacts({
- owner: context.repo.owner,
- repo: context.repo.repo,
- run_id: context.payload.workflow_run.id,
- });
- let matchArtifact = allArtifacts.data.artifacts.filter((artifact) => {
- return artifact.name == "artifact1"
- })[0];
- let download = await github.rest.actions.downloadArtifact({
- owner: context.repo.owner,
- repo: context.repo.repo,
- artifact_id: matchArtifact.id,
- archive_format: 'zip',
- });
- let fs = require('fs');
- fs.writeFileSync(`${process.env.GITHUB_WORKSPACE}/artifact1.zip`, Buffer.from(download.data));
-
- - name: check
- run: |
- pwd
- ls
-
- - name: upload to s3
- uses: shallwefootball/s3-upload-action@master
- with:
- aws_key_id: ${{ secrets.AWS_KEY_ID }}
- aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
- aws_bucket: ${{ secrets.AWS_BUCKET }}
- source_dir: folder
- destination_dir: gha/
From e24ad1b8d265fde856cdd8b937a7116896210ca7 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 26 Apr 2024 17:11:27 +0530
Subject: [PATCH 147/155] Create test.yaml
---
.github/workflows/test.yaml | 14 ++++++++++++++
1 file changed, 14 insertions(+)
create mode 100644 .github/workflows/test.yaml
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
new file mode 100644
index 0000000..9ec945b
--- /dev/null
+++ b/.github/workflows/test.yaml
@@ -0,0 +1,14 @@
+name: Manual Trigger Workflow
+
+on:
+ create:
+ paths:
+ - '.github/workflows/random.yaml'
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Echo Message
+ run: echo "Workflow manually triggered."
From dca205b78e2c390a752f157ba8a2b88f46a41623 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 26 Apr 2024 17:12:24 +0530
Subject: [PATCH 148/155] Create try.yaml
---
.github/workflows/try.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 .github/workflows/try.yaml
diff --git a/.github/workflows/try.yaml b/.github/workflows/try.yaml
new file mode 100644
index 0000000..85a4328
--- /dev/null
+++ b/.github/workflows/try.yaml
@@ -0,0 +1,12 @@
+name: Manual Trigger Workflow
+
+on:
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Echo Message
+ run: echo "Workflow manually triggered."
From 2a225df2739b06c20ec476bc9df898d9eec728df Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Fri, 26 Apr 2024 17:13:22 +0530
Subject: [PATCH 149/155] Create random.yaml
---
.github/workflows/random.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)
create mode 100644 .github/workflows/random.yaml
diff --git a/.github/workflows/random.yaml b/.github/workflows/random.yaml
new file mode 100644
index 0000000..85a4328
--- /dev/null
+++ b/.github/workflows/random.yaml
@@ -0,0 +1,12 @@
+name: Manual Trigger Workflow
+
+on:
+ workflow_dispatch:
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Echo Message
+ run: echo "Workflow manually triggered."
From 4d420d7a3e17859fb61681d7ad193f4802676eb7 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 25 Jul 2024 21:52:58 +0530
Subject: [PATCH 150/155] Update random.yaml
---
.github/workflows/random.yaml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/.github/workflows/random.yaml b/.github/workflows/random.yaml
index 85a4328..8f0cd1e 100644
--- a/.github/workflows/random.yaml
+++ b/.github/workflows/random.yaml
@@ -10,3 +10,11 @@ jobs:
steps:
- name: Echo Message
run: echo "Workflow manually triggered."
+
+ - name: Set branch name
+ run: |
+ echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
+
+ - name: create file
+ run: touch testing-file-touch-${{ env.BRANCH_NAME }}.txt
+
From a557a14fa647a85ba3cf956b6c66291bafce63a8 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 25 Jul 2024 21:56:25 +0530
Subject: [PATCH 151/155] Update test.yaml
---
.github/workflows/test.yaml | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index 9ec945b..be60479 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -1,14 +1,15 @@
-name: Manual Trigger Workflow
+name: Manual Trigger Workflow run
on:
- create:
- paths:
- - '.github/workflows/random.yaml'
-
+ workflow_run:
+ workflows: [Upload build_artifact_release]
+ types:
+ - completed
jobs:
build:
runs-on: ubuntu-latest
steps:
- - name: Echo Message
- run: echo "Workflow manually triggered."
+ - name: Echo Message copy fuile
+ run: |
+ cp
From 662556adae79dd5e6625df0d1b38e39a624692bd Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 25 Jul 2024 21:58:29 +0530
Subject: [PATCH 152/155] Update test.yaml
---
.github/workflows/test.yaml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml
index be60479..c23fe13 100644
--- a/.github/workflows/test.yaml
+++ b/.github/workflows/test.yaml
@@ -2,7 +2,7 @@ name: Manual Trigger Workflow run
on:
workflow_run:
- workflows: [Upload build_artifact_release]
+ workflows: [Manual Trigger Workflow]
types:
- completed
jobs:
@@ -12,4 +12,4 @@ jobs:
steps:
- name: Echo Message copy fuile
run: |
- cp
+ cp touch testing-file-touch-${{ github.event.workflow_run.head_branch }}.txt new.txt
From 9d042257464ff9a6196a7fdeebdb8ff33cae00ce Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 25 Jul 2024 22:02:16 +0530
Subject: [PATCH 153/155] Update random.yaml
---
.github/workflows/random.yaml | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/random.yaml b/.github/workflows/random.yaml
index 8f0cd1e..c083cd1 100644
--- a/.github/workflows/random.yaml
+++ b/.github/workflows/random.yaml
@@ -16,5 +16,8 @@ jobs:
echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
- name: create file
- run: touch testing-file-touch-${{ env.BRANCH_NAME }}.txt
+ run: |
+ mkdir -p test
+ cd test
+ touch testing-file-touch-${{ env.BRANCH_NAME }}.txt
From 67e8819afc9fa121132665565d06e47eae5ef785 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 25 Jul 2024 22:07:30 +0530
Subject: [PATCH 154/155] Update random.yaml
---
.github/workflows/random.yaml | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/random.yaml b/.github/workflows/random.yaml
index c083cd1..075385c 100644
--- a/.github/workflows/random.yaml
+++ b/.github/workflows/random.yaml
@@ -13,11 +13,12 @@ jobs:
- name: Set branch name
run: |
- echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/tags/##')" >> $GITHUB_ENV
+ echo "BRANCH_NAME=$(echo "${{ github.ref }}" | sed 's#refs/heads/##')" >> $GITHUB_ENV
- - name: create file
+ - name: Create file with content
run: |
- mkdir -p test
- cd test
- touch testing-file-touch-${{ env.BRANCH_NAME }}.txt
+ mkdir -p test
+ cd test
+ echo "hello" > testing-file-touch-${{ env.BRANCH_NAME }}.txt
+
From c4125489bd97f9f25aa5987e9fdc97418e50ce80 Mon Sep 17 00:00:00 2001
From: Ankit1Kumar <106664699+Ankit1Kumar@users.noreply.github.com>
Date: Thu, 25 Jul 2024 22:10:21 +0530
Subject: [PATCH 155/155] Create testing-file-touch-testing-branch.txt
---
testing-file-touch-testing-branch.txt | 1 +
1 file changed, 1 insertion(+)
create mode 100644 testing-file-touch-testing-branch.txt
diff --git a/testing-file-touch-testing-branch.txt b/testing-file-touch-testing-branch.txt
new file mode 100644
index 0000000..7a30dec
--- /dev/null
+++ b/testing-file-touch-testing-branch.txt
@@ -0,0 +1 @@
+testing-file-touch-testing-branch.txt hello