From 0d177e7fcd2bc6c960a0b9061f498b65f3277ad5 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 3 Jul 2019 13:41:44 +0300 Subject: [PATCH 01/70] Update HomeController.java --- .../java/com/gazgeek/helloworld/controller/HomeController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gazgeek/helloworld/controller/HomeController.java b/src/main/java/com/gazgeek/helloworld/controller/HomeController.java index c2df952..db20810 100644 --- a/src/main/java/com/gazgeek/helloworld/controller/HomeController.java +++ b/src/main/java/com/gazgeek/helloworld/controller/HomeController.java @@ -8,7 +8,7 @@ public class HomeController { @RequestMapping("/") String home() { - return "Hello from GazGeek!"; + return "Hello Engin"; } } From 743714df6301f66ce26c9244f537581137869a10 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 3 Jul 2019 13:52:11 +0300 Subject: [PATCH 02/70] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0e04922..20a0ff2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM dockerfile/java:oracle-java8 +FROM openjdk:7 ENV MAVEN_VERSION 3.2.5 @@ -15,4 +15,4 @@ RUN ["mvn", "clean", "install"] EXPOSE 8080 -CMD ["java", "-jar", "target/helloworld-0.0.1-SNAPSHOT.jar"] \ No newline at end of file +CMD ["java", "-jar", "target/helloworld-0.0.1-SNAPSHOT.jar"] From 0c6c6984d7f51d3c9d7ad3e26fb6473fa5df14b0 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 8 Jul 2019 12:00:53 +0300 Subject: [PATCH 03/70] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 20a0ff2..7dadde5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,6 @@ WORKDIR /data/springboot-helloworld RUN ["mvn", "clean", "install"] -EXPOSE 8080 +EXPOSE 8090 CMD ["java", "-jar", "target/helloworld-0.0.1-SNAPSHOT.jar"] From 33321598322b5882785a0d781aca9ca7be1ff448 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 14:00:33 +0300 Subject: [PATCH 04/70] Create github-ci.yml --- .github/workflows/github-ci.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/github-ci.yml diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.github/workflows/github-ci.yml @@ -0,0 +1 @@ + From 13fa068ee17ce2848825cb3ccfc66527dcc7d969 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 14:02:18 +0300 Subject: [PATCH 05/70] Rename github-ci.yml to github-ci-deneme.yml --- .github/workflows/github-ci-deneme.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/github-ci-deneme.yml diff --git a/.github/workflows/github-ci-deneme.yml b/.github/workflows/github-ci-deneme.yml new file mode 100644 index 0000000..b05aab9 --- /dev/null +++ b/.github/workflows/github-ci-deneme.yml @@ -0,0 +1,17 @@ +name: Java CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn package --file pom.xml From 35b1018f2e0d1656487227d304a0f0f3dfcee11b Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 14:10:15 +0300 Subject: [PATCH 06/70] Create gazi.yml --- .github/workflows/gazi.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/gazi.yml diff --git a/.github/workflows/gazi.yml b/.github/workflows/gazi.yml new file mode 100644 index 0000000..b05aab9 --- /dev/null +++ b/.github/workflows/gazi.yml @@ -0,0 +1,17 @@ +name: Java CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn package --file pom.xml From ee4e1f1833f0a19bb43904301773cd321f6952a0 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 14:14:48 +0300 Subject: [PATCH 07/70] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7dadde5..967b372 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ ENV MAVEN_HOME /usr/share/maven COPY . /data/springboot-helloworld WORKDIR /data/springboot-helloworld -RUN ["mvn", "clean", "install"] +RUN ["mvn", "clean", "install", "-Dmaven.test.skip=true"] EXPOSE 8090 From 7c2af9046639f99aa0a1eed5363b8429fcf8abfd Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 14:17:34 +0300 Subject: [PATCH 08/70] Update HomeController.java --- .../java/com/gazgeek/helloworld/controller/HomeController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gazgeek/helloworld/controller/HomeController.java b/src/main/java/com/gazgeek/helloworld/controller/HomeController.java index db20810..c2df952 100644 --- a/src/main/java/com/gazgeek/helloworld/controller/HomeController.java +++ b/src/main/java/com/gazgeek/helloworld/controller/HomeController.java @@ -8,7 +8,7 @@ public class HomeController { @RequestMapping("/") String home() { - return "Hello Engin"; + return "Hello from GazGeek!"; } } From 105627504102318e31a9cb02e10ca6411418ad24 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 14:18:12 +0300 Subject: [PATCH 09/70] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 967b372..7dadde5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ ENV MAVEN_HOME /usr/share/maven COPY . /data/springboot-helloworld WORKDIR /data/springboot-helloworld -RUN ["mvn", "clean", "install", "-Dmaven.test.skip=true"] +RUN ["mvn", "clean", "install"] EXPOSE 8090 From 87a3814cfd5e633a49e10b6e4be91dc09a527b85 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 14:25:31 +0300 Subject: [PATCH 10/70] Update github-ci-deneme.yml --- .github/workflows/github-ci-deneme.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/github-ci-deneme.yml b/.github/workflows/github-ci-deneme.yml index b05aab9..ae12c86 100644 --- a/.github/workflows/github-ci-deneme.yml +++ b/.github/workflows/github-ci-deneme.yml @@ -1,6 +1,12 @@ name: Java CI -on: [push] +on: + push: + branches: + - master + - 'releases/*' + tags: + - v1.0 jobs: build: From 6a598caa8d261635947524833a6c88c2facfd5a6 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 14:30:46 +0300 Subject: [PATCH 11/70] Create engincan.yml --- .github/workflows/engincan.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/engincan.yml diff --git a/.github/workflows/engincan.yml b/.github/workflows/engincan.yml new file mode 100644 index 0000000..04fe15b --- /dev/null +++ b/.github/workflows/engincan.yml @@ -0,0 +1,23 @@ +name: Deneme CI + +on: + push: + branches: + - master + - 'releases/*' + tags: + - v1.0 + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn package --file pom.xml From 37ed3203244c90904c97d370d97ecba25ec76429 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 14:57:27 +0300 Subject: [PATCH 12/70] Update engincan.yml --- .github/workflows/engincan.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/engincan.yml b/.github/workflows/engincan.yml index 04fe15b..43fdf53 100644 --- a/.github/workflows/engincan.yml +++ b/.github/workflows/engincan.yml @@ -11,7 +11,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v1 @@ -21,3 +21,9 @@ jobs: java-version: 1.8 - name: Build with Maven run: mvn package --file pom.xml + - name: Docker Login + run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A + shell: bash + - name: Docker Push + run: docker push engincanhoke/springboot-helloworld-0.0.1-g + shell: bash From 80181c3f128200347d9ab4e11bfc8fbc5d7ce84f Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:00:23 +0300 Subject: [PATCH 13/70] Update engincan.yml --- .github/workflows/engincan.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/engincan.yml b/.github/workflows/engincan.yml index 43fdf53..76a11c9 100644 --- a/.github/workflows/engincan.yml +++ b/.github/workflows/engincan.yml @@ -22,8 +22,8 @@ jobs: - name: Build with Maven run: mvn package --file pom.xml - name: Docker Login - run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A + run: docker login -u ${{ USERNAME }} -p ${{ PASSWORD }} shell: bash - name: Docker Push - run: docker push engincanhoke/springboot-helloworld-0.0.1-g + run: docker push ${{ USERNAME }}/springboot-helloworld-0.0.1-g shell: bash From 7379a4c40e5771908bab8602b8d1abbf783052f9 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:01:46 +0300 Subject: [PATCH 14/70] Update engincan.yml --- .github/workflows/engincan.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/engincan.yml b/.github/workflows/engincan.yml index 76a11c9..cee4107 100644 --- a/.github/workflows/engincan.yml +++ b/.github/workflows/engincan.yml @@ -22,8 +22,8 @@ jobs: - name: Build with Maven run: mvn package --file pom.xml - name: Docker Login - run: docker login -u ${{ USERNAME }} -p ${{ PASSWORD }} + run: docker login -u $USERNAME -p $PASSWORD shell: bash - name: Docker Push - run: docker push ${{ USERNAME }}/springboot-helloworld-0.0.1-g + run: docker push $USERNAME/springboot-helloworld-0.0.1-g shell: bash From 3ec60c6fe0b858e19e6d796fa3520a2c930816c7 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:02:39 +0300 Subject: [PATCH 15/70] Update engincan.yml --- .github/workflows/engincan.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/engincan.yml b/.github/workflows/engincan.yml index cee4107..2855aa9 100644 --- a/.github/workflows/engincan.yml +++ b/.github/workflows/engincan.yml @@ -22,8 +22,8 @@ jobs: - name: Build with Maven run: mvn package --file pom.xml - name: Docker Login - run: docker login -u $USERNAME -p $PASSWORD + run: docker login -u ${USERNAME} -p ${PASSWORD} shell: bash - name: Docker Push - run: docker push $USERNAME/springboot-helloworld-0.0.1-g + run: docker push ${USERNAME}/springboot-helloworld-0.0.1-g shell: bash From 39b1c766b74dfa2eaface5204676cdc94a1aeece Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:05:59 +0300 Subject: [PATCH 16/70] Create amuniym.yml --- .github/workflows/amuniym.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/amuniym.yml diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml new file mode 100644 index 0000000..43fdf53 --- /dev/null +++ b/.github/workflows/amuniym.yml @@ -0,0 +1,29 @@ +name: Deneme CI + +on: + push: + branches: + - master + - 'releases/*' + tags: + - v1.0 + +jobs: + build: + + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Build with Maven + run: mvn package --file pom.xml + - name: Docker Login + run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A + shell: bash + - name: Docker Push + run: docker push engincanhoke/springboot-helloworld-0.0.1-g + shell: bash From 36e8eacdf843b944671427d9ebe0d8ca89a1ca52 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:06:16 +0300 Subject: [PATCH 17/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 43fdf53..fc8e56d 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -1,4 +1,4 @@ -name: Deneme CI +name: Amuniym CI on: push: From dcc94bf1045ee28f78da114bbed45f6d9b4ce3fd Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:08:49 +0300 Subject: [PATCH 18/70] Delete engincan.yml --- .github/workflows/engincan.yml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 .github/workflows/engincan.yml diff --git a/.github/workflows/engincan.yml b/.github/workflows/engincan.yml deleted file mode 100644 index 2855aa9..0000000 --- a/.github/workflows/engincan.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Deneme CI - -on: - push: - branches: - - master - - 'releases/*' - tags: - - v1.0 - -jobs: - build: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn package --file pom.xml - - name: Docker Login - run: docker login -u ${USERNAME} -p ${PASSWORD} - shell: bash - - name: Docker Push - run: docker push ${USERNAME}/springboot-helloworld-0.0.1-g - shell: bash From daa5cbee0d9e17e54e8f549950e21347a6de17a9 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:08:57 +0300 Subject: [PATCH 19/70] Delete gazi.yml --- .github/workflows/gazi.yml | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .github/workflows/gazi.yml diff --git a/.github/workflows/gazi.yml b/.github/workflows/gazi.yml deleted file mode 100644 index b05aab9..0000000 --- a/.github/workflows/gazi.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Java CI - -on: [push] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn package --file pom.xml From 14f67fb04903e33e2f6fe30864953ce7e750435c Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:09:07 +0300 Subject: [PATCH 20/70] Delete github-ci-deneme.yml --- .github/workflows/github-ci-deneme.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/workflows/github-ci-deneme.yml diff --git a/.github/workflows/github-ci-deneme.yml b/.github/workflows/github-ci-deneme.yml deleted file mode 100644 index ae12c86..0000000 --- a/.github/workflows/github-ci-deneme.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: Java CI - -on: - push: - branches: - - master - - 'releases/*' - tags: - - v1.0 - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn package --file pom.xml From 5894cf8def3191a53c8bd64d801b46cc44674da0 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:09:14 +0300 Subject: [PATCH 21/70] Delete github-ci.yml --- .github/workflows/github-ci.yml | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .github/workflows/github-ci.yml diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml deleted file mode 100644 index 8b13789..0000000 --- a/.github/workflows/github-ci.yml +++ /dev/null @@ -1 +0,0 @@ - From e541fbbbeb651457bb8e9359ef03fada86e1fd83 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:10:54 +0300 Subject: [PATCH 22/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index fc8e56d..7877d9f 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -25,5 +25,5 @@ jobs: run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A shell: bash - name: Docker Push - run: docker push engincanhoke/springboot-helloworld-0.0.1-g + run: docker push engincanhoke/springboot-helloworld-0.0.2-g shell: bash From c5552e6cb63aa902733c07fd45e1225ad0f5659f Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:13:48 +0300 Subject: [PATCH 23/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 7877d9f..d2a14b9 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -21,9 +21,12 @@ jobs: java-version: 1.8 - name: Build with Maven run: mvn package --file pom.xml + - name: Docker Commit + run: docker commit $(docker ps -a | grep gazgeek/springboot-helloworld | awk {'print $1'}) engincanhoke/springboot-helloworld-0.0.3-g + shell: bash - name: Docker Login run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A shell: bash - name: Docker Push - run: docker push engincanhoke/springboot-helloworld-0.0.2-g + run: docker push engincanhoke/springboot-helloworld-0.0.3-g shell: bash From e10fb65d7d5c5dfc9ace9047f425340d6e33276a Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 15:24:26 +0300 Subject: [PATCH 24/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index d2a14b9..ee3e8a3 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -21,6 +21,9 @@ jobs: java-version: 1.8 - name: Build with Maven run: mvn package --file pom.xml + - name: Docker Build + run: docker image build -t springboot-helloworld . + shell: bash - name: Docker Commit run: docker commit $(docker ps -a | grep gazgeek/springboot-helloworld | awk {'print $1'}) engincanhoke/springboot-helloworld-0.0.3-g shell: bash From a052034a8f710dd175561584b61593bd54b2bf66 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 16:09:22 +0300 Subject: [PATCH 25/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index ee3e8a3..2d8d0af 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -11,7 +11,7 @@ on: jobs: build: - runs-on: ubuntu-18.04 + runs-on: centos:7 steps: - uses: actions/checkout@v1 From a1aa7e50f3ac7334baa53cd034e15d3b3023320e Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 16:12:30 +0300 Subject: [PATCH 26/70] Update Dockerfile --- Dockerfile | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7dadde5..5774c79 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,12 @@ -FROM openjdk:7 - -ENV MAVEN_VERSION 3.2.5 - -RUN curl -sSL http://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz | tar xzf - -C /usr/share \ - && mv /usr/share/apache-maven-$MAVEN_VERSION /usr/share/maven \ - && ln -s /usr/share/maven/bin/mvn /usr/bin/mvn - -ENV MAVEN_HOME /usr/share/maven - +FROM maven:3-jdk-8-alpine as builder + COPY . /data/springboot-helloworld WORKDIR /data/springboot-helloworld - RUN ["mvn", "clean", "install"] -EXPOSE 8090 +FROM openjdk:8-alpine -CMD ["java", "-jar", "target/helloworld-0.0.1-SNAPSHOT.jar"] +WORKDIR /data +COPY --from=builder /data/springboot-helloworld/target/*.jar ./app.jar +EXPOSE 8080 +CMD ["java", "-jar", "app.jar"] From 349ec1edcd3072597090dfdd4a5e478ac48edc6e Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 16:13:39 +0300 Subject: [PATCH 27/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 2d8d0af..74e9556 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -11,16 +11,9 @@ on: jobs: build: - runs-on: centos:7 + runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Maven - run: mvn package --file pom.xml - name: Docker Build run: docker image build -t springboot-helloworld . shell: bash From 62c130520cc508c9fb815465ddb7c1eff74d2167 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 16:16:57 +0300 Subject: [PATCH 28/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 74e9556..b1aa7ae 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -14,15 +14,15 @@ jobs: runs-on: ubuntu-18.04 steps: - - name: Docker Build - run: docker image build -t springboot-helloworld . + - name: ls + run: ls -al shell: bash - - name: Docker Commit - run: docker commit $(docker ps -a | grep gazgeek/springboot-helloworld | awk {'print $1'}) engincanhoke/springboot-helloworld-0.0.3-g + - name: Docker Build + run: docker image build -t engincanhoke/githubci:latest . shell: bash - name: Docker Login run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A shell: bash - name: Docker Push - run: docker push engincanhoke/springboot-helloworld-0.0.3-g + run: docker push engincanhoke/githubci:latest shell: bash From 95ec477c4e18e918ada91dd76b9ca84f7a3c2284 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 16:18:49 +0300 Subject: [PATCH 29/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index b1aa7ae..ea26e8a 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -14,6 +14,7 @@ jobs: runs-on: ubuntu-18.04 steps: + - uses: actions/checkout@v1 - name: ls run: ls -al shell: bash From df3e169895eaf90dcb5547eb5432e1a8ee2cee25 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 16:29:36 +0300 Subject: [PATCH 30/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index ea26e8a..b2b5d24 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -27,3 +27,7 @@ jobs: - name: Docker Push run: docker push engincanhoke/githubci:latest shell: bash + - name: Docker Deploy + run: docker container run -p 8080:8080 -d engincanhoke/githubci:latest + shell: bash + From 630b6c7eb7c80fde52bcc319bcddd8e6198fb9f6 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 16:49:38 +0300 Subject: [PATCH 31/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index b2b5d24..df7d163 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -17,6 +17,8 @@ jobs: - uses: actions/checkout@v1 - name: ls run: ls -al + run: pwd + run: echo engincan shell: bash - name: Docker Build run: docker image build -t engincanhoke/githubci:latest . @@ -30,4 +32,22 @@ jobs: - name: Docker Deploy run: docker container run -p 8080:8080 -d engincanhoke/githubci:latest shell: bash - + + deploy: + + runs-on: alpine + steps: + - uses: actions/checkout@v1 + - name: Deploy + run: apk update && apk add curl + run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl + run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl + run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz + run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm + run: helm init --upgrade + run: helm version + run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ + shell: bash + + + From 692747042d6dd86bcb2be02cd5477e93d17e6ce9 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 16:51:02 +0300 Subject: [PATCH 32/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index df7d163..16d86ce 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -33,21 +33,21 @@ jobs: run: docker container run -p 8080:8080 -d engincanhoke/githubci:latest shell: bash - deploy: +# deploy: - runs-on: alpine - steps: - - uses: actions/checkout@v1 - - name: Deploy - run: apk update && apk add curl - run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl - run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl - run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz - run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm - run: helm init --upgrade - run: helm version - run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ - shell: bash +# runs-on: alpine +# steps: +# - uses: actions/checkout@v1 +# - name: Deploy +# run: apk update && apk add curl +# run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl +# run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl +# run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz +# run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm +# run: helm init --upgrade +# run: helm version +# run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ +# shell: bash From 9c2fcca7b5000f76c16af2e73ba01733d4d758fb Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 16:53:33 +0300 Subject: [PATCH 33/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 16d86ce..1ca3bf5 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -17,8 +17,6 @@ jobs: - uses: actions/checkout@v1 - name: ls run: ls -al - run: pwd - run: echo engincan shell: bash - name: Docker Build run: docker image build -t engincanhoke/githubci:latest . @@ -33,11 +31,20 @@ jobs: run: docker container run -p 8080:8080 -d engincanhoke/githubci:latest shell: bash -# deploy: + deploy: -# runs-on: alpine -# steps: -# - uses: actions/checkout@v1 + runs-on: alpine + steps: + - uses: actions/checkout@v1 + script: + - apk update && apk add curl + - curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl + - chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl + - curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz + - mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm + - helm init --upgrade + - helm version + - helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ # - name: Deploy # run: apk update && apk add curl # run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl From 91f7cf0d16d30d58e671d1f6ca9f9d76ac58a273 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 17:02:06 +0300 Subject: [PATCH 34/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 1ca3bf5..4a89ca6 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -36,6 +36,7 @@ jobs: runs-on: alpine steps: - uses: actions/checkout@v1 + - name: Deploy script: - apk update && apk add curl - curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl From 2169b74d7ee55229c196261cc33c8791f6f7eff5 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 17:05:11 +0300 Subject: [PATCH 35/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 4a89ca6..cb1f900 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -34,18 +34,18 @@ jobs: deploy: runs-on: alpine - steps: - - uses: actions/checkout@v1 - - name: Deploy - script: - - apk update && apk add curl - - curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl - - chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl - - curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz - - mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm - - helm init --upgrade - - helm version - - helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ + steps: + - uses: actions/checkout@v1 + - name: Deploy + script: + - apk update && apk add curl + - curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl + - chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl + - curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz + - mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm + - helm init --upgrade + - helm version + - helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ # - name: Deploy # run: apk update && apk add curl # run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl From b82d9f558fa9e2fe2cba50d9b7e8044183666bd9 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 17:08:19 +0300 Subject: [PATCH 36/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 37 +++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 13 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index cb1f900..1bc23fc 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -36,16 +36,30 @@ jobs: runs-on: alpine steps: - uses: actions/checkout@v1 - - name: Deploy - script: - - apk update && apk add curl - - curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl - - chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl - - curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz - - mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm - - helm init --upgrade - - helm version - - helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ + - name: Deploy 1 + run: apk update && apk add curl + shell: bash + - name: Deploy 2 + run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl + shell: bash + - name: Deploy 3 + run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl + shell: bash + - name: Deploy 4 + run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz + shell: bash + - name: Deploy 5 + run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm + shell: bash + - name: Deploy 6 + run: helm init --upgrade + shell: bash + - name: Deploy 7 + run: helm version + shell: bash + - name: Deploy 8 + run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ + shell: bash # - name: Deploy # run: apk update && apk add curl # run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl @@ -56,6 +70,3 @@ jobs: # run: helm version # run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ # shell: bash - - - From aeef9946c65bd68a9a88c0155d6bcaec75f62ab0 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 17:16:04 +0300 Subject: [PATCH 37/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 1bc23fc..7cdc375 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -33,7 +33,7 @@ jobs: deploy: - runs-on: alpine + runs-on: alpine:latest steps: - uses: actions/checkout@v1 - name: Deploy 1 From 436b65883d941346069dd353f4ae30bb3df2127f Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 17:25:22 +0300 Subject: [PATCH 38/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 101 +++++++++++++++++----------------- 1 file changed, 51 insertions(+), 50 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 7cdc375..595baff 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -7,59 +7,60 @@ on: - 'releases/*' tags: - v1.0 +- stage: A + jobs: + build: -jobs: - build: + runs-on: ubuntu-18.04 - runs-on: ubuntu-18.04 + steps: + - uses: actions/checkout@v1 + - name: ls + run: ls -al + shell: bash + - name: Docker Build + run: docker image build -t engincanhoke/githubci:latest . + shell: bash + - name: Docker Login + run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A + shell: bash + - name: Docker Push + run: docker push engincanhoke/githubci:latest + shell: bash + - name: Docker Deploy + run: docker container run -p 8080:8080 -d engincanhoke/githubci:latest + shell: bash +- stage: A + jobs: + deploy: - steps: - - uses: actions/checkout@v1 - - name: ls - run: ls -al - shell: bash - - name: Docker Build - run: docker image build -t engincanhoke/githubci:latest . - shell: bash - - name: Docker Login - run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A - shell: bash - - name: Docker Push - run: docker push engincanhoke/githubci:latest - shell: bash - - name: Docker Deploy - run: docker container run -p 8080:8080 -d engincanhoke/githubci:latest - shell: bash - - deploy: - - runs-on: alpine:latest - steps: - - uses: actions/checkout@v1 - - name: Deploy 1 - run: apk update && apk add curl - shell: bash - - name: Deploy 2 - run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl - shell: bash - - name: Deploy 3 - run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl - shell: bash - - name: Deploy 4 - run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz - shell: bash - - name: Deploy 5 - run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm - shell: bash - - name: Deploy 6 - run: helm init --upgrade - shell: bash - - name: Deploy 7 - run: helm version - shell: bash - - name: Deploy 8 - run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ - shell: bash + runs-on: alpine:latest + steps: + - uses: actions/checkout@v1 + - name: Deploy 1 + run: apk update && apk add curl + shell: bash + - name: Deploy 2 + run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl + shell: bash + - name: Deploy 3 + run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl + shell: bash + - name: Deploy 4 + run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz + shell: bash + - name: Deploy 5 + run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm + shell: bash + - name: Deploy 6 + run: helm init --upgrade + shell: bash + - name: Deploy 7 + run: helm version + shell: bash + - name: Deploy 8 + run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ + shell: bash # - name: Deploy # run: apk update && apk add curl # run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl From 84e3da69f69f1cf2c65fdd58fe94285a4929ba2b Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 17:28:52 +0300 Subject: [PATCH 39/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 595baff..180ef7c 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -30,15 +30,8 @@ on: - name: Docker Deploy run: docker container run -p 8080:8080 -d engincanhoke/githubci:latest shell: bash -- stage: A - jobs: - deploy: - - runs-on: alpine:latest - steps: - - uses: actions/checkout@v1 - name: Deploy 1 - run: apk update && apk add curl + run: apt update && apt install curl shell: bash - name: Deploy 2 run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl From 4505a971d7e55dee72218921c504df0daf915726 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 17:29:39 +0300 Subject: [PATCH 40/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 180ef7c..dcff3db 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -7,7 +7,6 @@ on: - 'releases/*' tags: - v1.0 -- stage: A jobs: build: From da9363c9344ac8f1e88583678f8663c0b1b57968 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 17:32:42 +0300 Subject: [PATCH 41/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 88 +++++++++++++++++------------------ 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index dcff3db..803bbb9 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -7,52 +7,52 @@ on: - 'releases/*' tags: - v1.0 - jobs: - build: +jobs: + build: - runs-on: ubuntu-18.04 + runs-on: ubuntu-18.04 - steps: - - uses: actions/checkout@v1 - - name: ls - run: ls -al - shell: bash - - name: Docker Build - run: docker image build -t engincanhoke/githubci:latest . - shell: bash - - name: Docker Login - run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A - shell: bash - - name: Docker Push - run: docker push engincanhoke/githubci:latest - shell: bash - - name: Docker Deploy - run: docker container run -p 8080:8080 -d engincanhoke/githubci:latest - shell: bash - - name: Deploy 1 - run: apt update && apt install curl - shell: bash - - name: Deploy 2 - run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl - shell: bash - - name: Deploy 3 - run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl - shell: bash - - name: Deploy 4 - run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz - shell: bash - - name: Deploy 5 - run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm - shell: bash - - name: Deploy 6 - run: helm init --upgrade - shell: bash - - name: Deploy 7 - run: helm version - shell: bash - - name: Deploy 8 - run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ - shell: bash + steps: + - uses: actions/checkout@v1 + - name: ls + run: ls -al + shell: bash + - name: Docker Build + run: docker image build -t engincanhoke/githubci:latest . + shell: bash + - name: Docker Login + run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A + shell: bash + - name: Docker Push + run: docker push engincanhoke/githubci:latest + shell: bash + - name: Docker Deploy + run: docker container run -p 8080:8080 -d engincanhoke/githubci:latest + shell: bash + - name: Deploy 1 + run: apt update && apt install curl + shell: bash + - name: Deploy 2 + run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl + shell: bash + - name: Deploy 3 + run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl + shell: bash + - name: Deploy 4 + run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz + shell: bash + - name: Deploy 5 + run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm + shell: bash + - name: Deploy 6 + run: helm init --upgrade + shell: bash + - name: Deploy 7 + run: helm version + shell: bash + - name: Deploy 8 + run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ + shell: bash # - name: Deploy # run: apk update && apk add curl # run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl From 5dab03d66a98b4361d34f1f68005f46e29469f1a Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 6 Sep 2019 20:21:47 +0300 Subject: [PATCH 42/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 54 +++++++++++++++++------------------ 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 803bbb9..1cf4b4a 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -18,41 +18,41 @@ jobs: run: ls -al shell: bash - name: Docker Build - run: docker image build -t engincanhoke/githubci:latest . + run: docker image build -t engincanhoke/githubci:0.0.3-g . shell: bash - name: Docker Login run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A shell: bash - name: Docker Push - run: docker push engincanhoke/githubci:latest + run: docker push engincanhoke/githubci:0.0.3-g shell: bash - name: Docker Deploy - run: docker container run -p 8080:8080 -d engincanhoke/githubci:latest - shell: bash - - name: Deploy 1 - run: apt update && apt install curl - shell: bash - - name: Deploy 2 - run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl - shell: bash - - name: Deploy 3 - run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl - shell: bash - - name: Deploy 4 - run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz - shell: bash - - name: Deploy 5 - run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm - shell: bash - - name: Deploy 6 - run: helm init --upgrade - shell: bash - - name: Deploy 7 - run: helm version - shell: bash - - name: Deploy 8 - run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ + run: docker container run -p 8080:8080 -d engincanhoke/githubci:0.0.3-g shell: bash +# - name: Deploy 1 +# run: apt update && apt install curl +# shell: bash +# - name: Deploy 2 +# run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl +# shell: bash +# - name: Deploy 3 +# run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl +# shell: bash +# - name: Deploy 4 +# run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz +# shell: bash +# - name: Deploy 5 +# run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm +# shell: bash +# - name: Deploy 6 +# run: helm init --upgrade +# shell: bash +# - name: Deploy 7 +# run: helm version +# shell: bash +# - name: Deploy 8 +# run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ +# shell: bash # - name: Deploy # run: apk update && apk add curl # run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl From 5d42c928189fa833d48233c63fca9a5f43404745 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 16 Sep 2019 17:23:17 +0300 Subject: [PATCH 43/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 1cf4b4a..9d2e658 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -26,9 +26,11 @@ jobs: - name: Docker Push run: docker push engincanhoke/githubci:0.0.3-g shell: bash - - name: Docker Deploy - run: docker container run -p 8080:8080 -d engincanhoke/githubci:0.0.3-g - shell: bash + - name: Kubernetes Deploy + shell: + - echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list + - curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - + - sudo apt-get update && sudo apt-get install google-cloud-sdk # - name: Deploy 1 # run: apt update && apt install curl # shell: bash From 7317027dc40824440596e6f9ba39c99de4837a63 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 16 Sep 2019 17:24:55 +0300 Subject: [PATCH 44/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 9d2e658..5f97805 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -26,20 +26,20 @@ jobs: - name: Docker Push run: docker push engincanhoke/githubci:0.0.3-g shell: bash - - name: Kubernetes Deploy - shell: - - echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list - - curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - - - sudo apt-get update && sudo apt-get install google-cloud-sdk -# - name: Deploy 1 -# run: apt update && apt install curl -# shell: bash -# - name: Deploy 2 -# run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl -# shell: bash -# - name: Deploy 3 -# run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl -# shell: bash +# - name: Kubernetes Deploy +# shell: +# - echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list +# - curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - +# - sudo apt-get update && sudo apt-get install google-cloud-sdk + - name: Deploy 1 + run: echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list + shell: bash + - name: Deploy 2 + run: curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - + shell: bash + - name: Deploy 3 + run: sudo apt-get update && sudo apt-get install google-cloud-sdk + shell: bash # - name: Deploy 4 # run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz # shell: bash From c0eb712c1158543aa8a93c1e1f0a3c8a62284122 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 16 Sep 2019 17:37:28 +0300 Subject: [PATCH 45/70] Create denemee.yml --- .github/workflows/denemee.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/denemee.yml diff --git a/.github/workflows/denemee.yml b/.github/workflows/denemee.yml new file mode 100644 index 0000000..4a4bcfb --- /dev/null +++ b/.github/workflows/denemee.yml @@ -0,0 +1,22 @@ +name: Deneneeme CI + +on: + push: + branches: + - master + - 'releases/*' + tags: + - v1.0 +jobs: + build: + + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@v1 + - name: ls + run: | + sudo apt-get update && \ + sudo apt-get install net-tools && \ + echo oldu + shell: bash From 0c6cd234eb9c6d54d1e95475dc2f6981a3beda39 Mon Sep 17 00:00:00 2001 From: mertongngl Date: Mon, 16 Sep 2019 17:53:34 +0300 Subject: [PATCH 46/70] helm chart added --- hello-world/.helmignore | 22 ++++++++ hello-world/Chart.yaml | 5 ++ hello-world/templates/NOTES.txt | 21 ++++++++ hello-world/templates/_helpers.tpl | 45 ++++++++++++++++ hello-world/templates/deployment.yaml | 50 ++++++++++++++++++ hello-world/templates/ingress.yaml | 36 +++++++++++++ hello-world/templates/service.yaml | 16 ++++++ .../templates/tests/test-connection.yaml | 15 ++++++ hello-world/values.yaml | 51 +++++++++++++++++++ 9 files changed, 261 insertions(+) create mode 100644 hello-world/.helmignore create mode 100644 hello-world/Chart.yaml create mode 100644 hello-world/templates/NOTES.txt create mode 100644 hello-world/templates/_helpers.tpl create mode 100644 hello-world/templates/deployment.yaml create mode 100644 hello-world/templates/ingress.yaml create mode 100644 hello-world/templates/service.yaml create mode 100644 hello-world/templates/tests/test-connection.yaml create mode 100644 hello-world/values.yaml diff --git a/hello-world/.helmignore b/hello-world/.helmignore new file mode 100644 index 0000000..50af031 --- /dev/null +++ b/hello-world/.helmignore @@ -0,0 +1,22 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/hello-world/Chart.yaml b/hello-world/Chart.yaml new file mode 100644 index 0000000..6469f8b --- /dev/null +++ b/hello-world/Chart.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +appVersion: "1.0" +description: A Helm chart for Kubernetes +name: hello-world +version: 0.1.0 diff --git a/hello-world/templates/NOTES.txt b/hello-world/templates/NOTES.txt new file mode 100644 index 0000000..1da2924 --- /dev/null +++ b/hello-world/templates/NOTES.txt @@ -0,0 +1,21 @@ +1. Get the application URL by running these commands: +{{- if .Values.ingress.enabled }} +{{- range $host := .Values.ingress.hosts }} + {{- range .paths }} + http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ . }} + {{- end }} +{{- end }} +{{- else if contains "NodePort" .Values.service.type }} + export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "hello-world.fullname" . }}) + export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") + echo http://$NODE_IP:$NODE_PORT +{{- else if contains "LoadBalancer" .Values.service.type }} + NOTE: It may take a few minutes for the LoadBalancer IP to be available. + You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "hello-world.fullname" . }}' + export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "hello-world.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}') + echo http://$SERVICE_IP:{{ .Values.service.port }} +{{- else if contains "ClusterIP" .Values.service.type }} + export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "hello-world.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") + echo "Visit http://127.0.0.1:8080 to use your application" + kubectl port-forward $POD_NAME 8080:80 +{{- end }} diff --git a/hello-world/templates/_helpers.tpl b/hello-world/templates/_helpers.tpl new file mode 100644 index 0000000..051fff4 --- /dev/null +++ b/hello-world/templates/_helpers.tpl @@ -0,0 +1,45 @@ +{{/* vim: set filetype=mustache: */}} +{{/* +Expand the name of the chart. +*/}} +{{- define "hello-world.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "hello-world.fullname" -}} +{{- if .Values.fullnameOverride -}} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- $name := default .Chart.Name .Values.nameOverride -}} +{{- if contains $name .Release.Name -}} +{{- .Release.Name | trunc 63 | trimSuffix "-" -}} +{{- else -}} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} +{{- end -}} +{{- end -}} +{{- end -}} + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "hello-world.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}} +{{- end -}} + +{{/* +Common labels +*/}} +{{- define "hello-world.labels" -}} +app.kubernetes.io/name: {{ include "hello-world.name" . }} +helm.sh/chart: {{ include "hello-world.chart" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end -}} diff --git a/hello-world/templates/deployment.yaml b/hello-world/templates/deployment.yaml new file mode 100644 index 0000000..a120dc8 --- /dev/null +++ b/hello-world/templates/deployment.yaml @@ -0,0 +1,50 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "hello-world.fullname" . }} + labels: +{{ include "hello-world.labels" . | indent 4 }} +spec: + replicas: {{ .Values.replicaCount }} + selector: + matchLabels: + app.kubernetes.io/name: {{ include "hello-world.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ include "hello-world.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} + spec: + imagePullSecrets: + - name: myregistrykey + containers: + - name: {{ .Chart.Name }} + image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + ports: + - name: http + containerPort: 8080 + protocol: TCP + livenessProbe: + httpGet: + path: / + port: http + readinessProbe: + httpGet: + path: / + port: http + resources: + {{- toYaml .Values.resources | nindent 12 }} + {{- with .Values.nodeSelector }} + nodeSelector: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/hello-world/templates/ingress.yaml b/hello-world/templates/ingress.yaml new file mode 100644 index 0000000..64a417b --- /dev/null +++ b/hello-world/templates/ingress.yaml @@ -0,0 +1,36 @@ +{{- if .Values.ingress.enabled -}} +{{- $fullName := include "hello-world.fullname" . -}} +apiVersion: extensions/v1beta1 +kind: Ingress +metadata: + name: {{ $fullName }} + labels: +{{ include "hello-world.labels" . | indent 4 }} + {{- with .Values.ingress.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} +spec: +{{- if .Values.ingress.tls }} + tls: + {{- range .Values.ingress.tls }} + - hosts: + {{- range .hosts }} + - {{ . | quote }} + {{- end }} + secretName: {{ .secretName }} + {{- end }} +{{- end }} + rules: + {{- range .Values.ingress.hosts }} + - host: {{ .host | quote }} + http: + paths: + {{- range .paths }} + - path: {{ . }} + backend: + serviceName: {{ $fullName }} + servicePort: http + {{- end }} + {{- end }} +{{- end }} diff --git a/hello-world/templates/service.yaml b/hello-world/templates/service.yaml new file mode 100644 index 0000000..f07a604 --- /dev/null +++ b/hello-world/templates/service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ include "hello-world.fullname" . }} + labels: +{{ include "hello-world.labels" . | indent 4 }} +spec: + type: {{ .Values.service.type }} + ports: + - port: {{ .Values.service.port }} + targetPort: http + protocol: TCP + name: http + selector: + app.kubernetes.io/name: {{ include "hello-world.name" . }} + app.kubernetes.io/instance: {{ .Release.Name }} diff --git a/hello-world/templates/tests/test-connection.yaml b/hello-world/templates/tests/test-connection.yaml new file mode 100644 index 0000000..cc4fa71 --- /dev/null +++ b/hello-world/templates/tests/test-connection.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +kind: Pod +metadata: + name: "{{ include "hello-world.fullname" . }}-test-connection" + labels: +{{ include "hello-world.labels" . | indent 4 }} + annotations: + "helm.sh/hook": test-success +spec: + containers: + - name: wget + image: busybox + command: ['wget'] + args: ['{{ include "hello-world.fullname" . }}:{{ .Values.service.port }}'] + restartPolicy: Never diff --git a/hello-world/values.yaml b/hello-world/values.yaml new file mode 100644 index 0000000..d9be1a7 --- /dev/null +++ b/hello-world/values.yaml @@ -0,0 +1,51 @@ +# Default values for hello-world. +# This is a YAML-formatted file. +# Declare variables to be passed into your templates. + +replicaCount: 2 + +image: + repository: mertongngl/hello + tag: latest + pullPolicy: IfNotPresent + +imagePullSecrets: [] +nameOverride: "" +fullnameOverride: "" + +service: + type: ClusterIP + port: 80 + +ingress: + enabled: true + annotations: {} + # kubernetes.io/ingress.class: nginx + # kubernetes.io/tls-acme: "true" + hosts: + - host: mertcase.bestcloudfor.me + paths: + - "/" + + tls: [] + # - secretName: chart-example-tls + # hosts: + # - chart-example.local + +resources: {} + # We usually recommend not to specify default resources and to leave this as a conscious + # choice for the user. This also increases chances charts run on environments with little + # resources, such as Minikube. If you do want to specify resources, uncomment the following + # lines, adjust them as necessary, and remove the curly braces after 'resources:'. + # limits: + # cpu: 100m + # memory: 128Mi + # requests: + # cpu: 100m + # memory: 128Mi + +nodeSelector: {} + +tolerations: [] + +affinity: {} From 5dcc248f53e4a6d518721798cc26f8a143eee409 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 16 Sep 2019 18:19:09 +0300 Subject: [PATCH 47/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 38 +++++++++++++++++------------------ 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 5f97805..3733073 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -14,32 +14,30 @@ jobs: steps: - uses: actions/checkout@v1 - - name: ls - run: ls -al - shell: bash - - name: Docker Build - run: docker image build -t engincanhoke/githubci:0.0.3-g . - shell: bash - name: Docker Login run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A shell: bash - - name: Docker Push - run: docker push engincanhoke/githubci:0.0.3-g + - name: Docker Image Build + run: docker image build -t engincanhoke/githubci:latest . shell: bash -# - name: Kubernetes Deploy -# shell: -# - echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list -# - curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - -# - sudo apt-get update && sudo apt-get install google-cloud-sdk - - name: Deploy 1 - run: echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list + - name: Docker Image Push + run: docker push engincanhoke/githubci:latest shell: bash - - name: Deploy 2 - run: curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - - shell: bash - - name: Deploy 3 - run: sudo apt-get update && sudo apt-get install google-cloud-sdk + - name: Installations + run: | + echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] http://packages.cloud.google.com/apt cloud-sdk main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && \ + curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - && \ + sudo apt-get update && sudo apt-get install google-cloud-sdk && \ + curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl && \ + chmod +x ./kubectl && \ + sudo mv ./kubectl /usr/local/bin/kubectl && \ + curl -L https://git.io/get_helm.sh | bash && \ + helm init --client-only shell: bash + - name: Helm deploy + run: | + helm upgrade helloworld hello-world --namespace application --set image.tag="latest" && \ + # - name: Deploy 4 # run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz # shell: bash From cfcc1286a236e806d267a4180be5529b0c8d41d4 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Tue, 17 Sep 2019 14:11:51 +0300 Subject: [PATCH 48/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 3733073..031b05a 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -37,6 +37,10 @@ jobs: - name: Helm deploy run: | helm upgrade helloworld hello-world --namespace application --set image.tag="latest" && \ + gcloud init --console-only && \ + gcloud config set account gcpcmdlineuser@axial-history-248207.iam.gserviceaccount.com && \ + gcloud auth activate-service-account --project=axial-history-248207 --key-file=somekey.json && \ + # - name: Deploy 4 # run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz From 7469eeaa4c76da545f2bb99b76e1837b27eb13fd Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 18 Sep 2019 09:20:35 +0300 Subject: [PATCH 49/70] Create config --- config | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 config diff --git a/config b/config new file mode 100644 index 0000000..a607acf --- /dev/null +++ b/config @@ -0,0 +1,26 @@ +apiVersion: v1 +clusters: +- cluster: + certificate-authority-data: LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURDekNDQWZPZ0F3SUJBZ0lRSWFCYW1lNmJoTGFLY0taazBvMEpDREFOQmdrcWhraUc5dzBCQVFzRkFEQXYKTVMwd0t3WURWUVFERXlSaVlXRXdaRGxtWWkwd1l6TmtMVFF3WVdNdFlXRTFPUzB6TkRneVlXUTFOV00xTXpjdwpIaGNOTVRrd09UQTJNVEl4TmpBeVdoY05NalF3T1RBME1UTXhOakF5V2pBdk1TMHdLd1lEVlFRREV5UmlZV0V3ClpEbG1ZaTB3WXpOa0xUUXdZV010WVdFMU9TMHpORGd5WVdRMU5XTTFNemN3Z2dFaU1BMEdDU3FHU0liM0RRRUIKQVFVQUE0SUJEd0F3Z2dFS0FvSUJBUURYYTUvWE11c1NIRmQ2UTF1bm5WZ3dqS0NYVGlVZ0t2OHBKUktsYVNxdgowdXFXMjZEMFprVXRHYUxxWDBvWTB5TlJMTGpZRGRxWG9ZSEJNZllhUEY5NzlmTVFzSEJzYjdnWmZZTHQyR0ZDCi9za0htUFI2SXQya25DR3RIQ2lZSUNCdDRSYmZUb0VqNDNiSzdGd3pmdE9uNkl0dmRudmZBMnl4UmxSRjg1RmEKVW5vSzk3U29wdUtIa2FhR1NBeGxGb1pIb1VicnpRalI3ZTVlN2dEWW8zZUdTNjdIZ01NUWVsbFhuNFkvUDRRQQppRnFDMU5OYWRsaE9MZ01jMjJhWHFJM3E4Tngrblp1UHcwUUhjUXJONVVaVU9nQitxb0w4ZWFJYkJtRGF2RFFrCnNyN3lzdDgrUEFRR3U5V0lGaDMyMjBtV012M2Q5ajR2aSt3ZVZiSmM0dllIQWdNQkFBR2pJekFoTUE0R0ExVWQKRHdFQi93UUVBd0lDQkRBUEJnTlZIUk1CQWY4RUJUQURBUUgvTUEwR0NTcUdTSWIzRFFFQkN3VUFBNElCQVFEUQozaGlvdHROVEVDZWpFdjQvd1d0N3J4cXhTVWFsNTV5azJUUUlpc2dVOEp4NTErWVZTc1lob1FCZTlla2xFV1lmClIweEV6bm1nUzhhZGJJYktkTFViSXU0K3E1aksyM2hYUHNtOXM1aHQvWXYzRnhKMFVUV2ZnbVhYTlgzNTVuMWkKcERxMkM0MkZFZHREaFhFQVJQR3NQOUcrQ0tEazlhcDFjOE1aNzhBd1RtSkppWnJQWEI2SjZuMWY4L2UzdWxydQptKzlvc3FmOTR0dFgwaU9sNThaNDhCdmtGa1IvOEdxakxSK0pic1VoL0NySzg1aTVEL2cyd0ZxR1NjR2JKNUhWClFOQ0dPTFdGczdkZmZZQTZsUzRKSmNseU82TnAvdm9lUCtReENkdFNVb0dOVlE5NDhINSs1VWFJNlFJamxsazMKRnNrUWVuaCtxNFlPM25iekJGa3cKLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo= + server: https://35.228.176.115 + name: gke_axial-history-248207_europe-north1-b_standard-cluster-1 +contexts: +- context: + cluster: gke_axial-history-248207_europe-north1-b_standard-cluster-1 + user: gke_axial-history-248207_europe-north1-b_standard-cluster-1 + name: gke_axial-history-248207_europe-north1-b_standard-cluster-1 +current-context: gke_axial-history-248207_europe-north1-b_standard-cluster-1 +kind: Config +preferences: {} +users: +- name: gke_axial-history-248207_europe-north1-b_standard-cluster-1 + user: + auth-provider: + config: + access-token: ya29.Glx-B5MA4GT_iV1UXf_TncwI4z6Zeot1oPSQiffULxOAHp0Ckl9AqVatozeEiyl0ATxUqFHD_oh_B_b2-CIoW0QJTwT49QRSQECzLftNLkUU-yP6zJZhLpZIugY_UQ + cmd-args: config config-helper --format=json + cmd-path: /usr/lib64/google-cloud-sdk/bin/gcloud + expiry: "2019-09-09T15:34:49Z" + expiry-key: '{.credential.token_expiry}' + token-key: '{.credential.access_token}' + name: gcp From b82b05b6309787b5535a4b94e0bab4647cbc4381 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 18 Sep 2019 09:47:26 +0300 Subject: [PATCH 50/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 39 +++++++---------------------------- 1 file changed, 8 insertions(+), 31 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 031b05a..8efb294 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -32,38 +32,15 @@ jobs: chmod +x ./kubectl && \ sudo mv ./kubectl /usr/local/bin/kubectl && \ curl -L https://git.io/get_helm.sh | bash && \ - helm init --client-only + helm init --client-only && \ + export KUBE_CONFIG=$(pwd)/config shell: bash - name: Helm deploy run: | - helm upgrade helloworld hello-world --namespace application --set image.tag="latest" && \ - gcloud init --console-only && \ - gcloud config set account gcpcmdlineuser@axial-history-248207.iam.gserviceaccount.com && \ - gcloud auth activate-service-account --project=axial-history-248207 --key-file=somekey.json && \ - + if [ $(helm list | grep helloworld | wc -l) > 0 ] + then + helm upgrade helloworld hello-world --namespace application --set image.tag="latest" + else + helm install hello-world --name helloworld --namespace application --set image.tag="latest" + fi -# - name: Deploy 4 -# run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz -# shell: bash -# - name: Deploy 5 -# run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm -# shell: bash -# - name: Deploy 6 -# run: helm init --upgrade -# shell: bash -# - name: Deploy 7 -# run: helm version -# shell: bash -# - name: Deploy 8 -# run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ -# shell: bash -# - name: Deploy -# run: apk update && apk add curl -# run: curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.6.0/bin/linux/amd64/kubectl -# run: chmod +x ./kubectl && mv ./kubectl /usr/bin/kubectl -# run: curl -LO https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && tar -xvzf helm-v2.14.1-linux-amd64.tar.gz -# run: mv linux-amd64/helm /usr/bin/ && chmod +x /usr/bin/helm -# run: helm init --upgrade -# run: helm version -# run: helm upgrade --install production-backend-tarfin --namespace prod --set backend.image=$IMAGE_URL_PROD backend-deploy/ -# shell: bash From 720449e137fe6ae4342ea2ac3c38b85b9e6bd079 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 18 Sep 2019 09:52:08 +0300 Subject: [PATCH 51/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 8efb294..8208657 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -37,7 +37,7 @@ jobs: shell: bash - name: Helm deploy run: | - if [ $(helm list | grep helloworld | wc -l) > 0 ] + if [ "$(helm list | grep helloworld | wc -l)" != "0" ] then helm upgrade helloworld hello-world --namespace application --set image.tag="latest" else From 27f6f9a5ad888b062735f7576187ee1872d6ff5d Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 18 Sep 2019 10:10:41 +0300 Subject: [PATCH 52/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 8208657..3c9cdf1 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -36,11 +36,5 @@ jobs: export KUBE_CONFIG=$(pwd)/config shell: bash - name: Helm deploy - run: | - if [ "$(helm list | grep helloworld | wc -l)" != "0" ] - then - helm upgrade helloworld hello-world --namespace application --set image.tag="latest" - else - helm install hello-world --name helloworld --namespace application --set image.tag="latest" - fi + run: helm upgrade helloworld hello-world --namespace application --set image.tag="latest" From afb94bc9ba1068cf51fef5016d2ea404e6a331af Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 18 Sep 2019 17:38:32 +0300 Subject: [PATCH 53/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 3c9cdf1..07e32c5 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -33,7 +33,7 @@ jobs: sudo mv ./kubectl /usr/local/bin/kubectl && \ curl -L https://git.io/get_helm.sh | bash && \ helm init --client-only && \ - export KUBE_CONFIG=$(pwd)/config + kubectl config use-context gke_axial-history-248207_europe-north1-b_standard-cluster-1 --kubeconfig config shell: bash - name: Helm deploy run: helm upgrade helloworld hello-world --namespace application --set image.tag="latest" From c760816d2a690d2c7c9b3cd4a46c5d1dea68bc96 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 18 Sep 2019 17:53:02 +0300 Subject: [PATCH 54/70] Update config --- config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config b/config index a607acf..ae25472 100644 --- a/config +++ b/config @@ -17,10 +17,10 @@ users: user: auth-provider: config: - access-token: ya29.Glx-B5MA4GT_iV1UXf_TncwI4z6Zeot1oPSQiffULxOAHp0Ckl9AqVatozeEiyl0ATxUqFHD_oh_B_b2-CIoW0QJTwT49QRSQECzLftNLkUU-yP6zJZhLpZIugY_UQ + access-token: ya29.Il-HB4_VLKYnVHUWOi9qv3UNuqWu49ROQvN_Efiy4P2v8K8oDf02kxfeOCRPMUan6S8hsVXjFn5warL4wM3shgkmOTvA6HbYqqEMACAZKs-29mnOCJrXsaBQKP5d3QegDw cmd-args: config config-helper --format=json cmd-path: /usr/lib64/google-cloud-sdk/bin/gcloud - expiry: "2019-09-09T15:34:49Z" + expiry: "2019-09-18T15:49:06Z" expiry-key: '{.credential.token_expiry}' token-key: '{.credential.access_token}' name: gcp From 5237015122c83f4ceb6a212f4886f0ec318909ba Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Thu, 19 Sep 2019 18:06:17 +0300 Subject: [PATCH 55/70] Delete denemee.yml --- .github/workflows/denemee.yml | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .github/workflows/denemee.yml diff --git a/.github/workflows/denemee.yml b/.github/workflows/denemee.yml deleted file mode 100644 index 4a4bcfb..0000000 --- a/.github/workflows/denemee.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Deneneeme CI - -on: - push: - branches: - - master - - 'releases/*' - tags: - - v1.0 -jobs: - build: - - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - name: ls - run: | - sudo apt-get update && \ - sudo apt-get install net-tools && \ - echo oldu - shell: bash From 30b05cde217075cdf697610bb9a0320bcd7124b1 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Fri, 20 Sep 2019 11:39:01 +0300 Subject: [PATCH 56/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 07e32c5..e525bdb 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: Docker Login - run: docker login -u engincanhoke -p 6UU5hfdn2nWAX3A + run: docker login -u $USERNAME -p $PASSWORD shell: bash - name: Docker Image Build run: docker image build -t engincanhoke/githubci:latest . @@ -32,8 +32,12 @@ jobs: chmod +x ./kubectl && \ sudo mv ./kubectl /usr/local/bin/kubectl && \ curl -L https://git.io/get_helm.sh | bash && \ - helm init --client-only && \ - kubectl config use-context gke_axial-history-248207_europe-north1-b_standard-cluster-1 --kubeconfig config + echo $DEPLOYER | base64 --decode > deployer.json && \ + gcloud auth activate-service-account $SERVICEACCOUNT --key-file=$(pwd)/deployer.json --project=$PROJECTNAME && \ + gcloud container clusters get-credentials $CLUSTERNAME --zone $ZONE && \ + helm init --client-only + + shell: bash - name: Helm deploy run: helm upgrade helloworld hello-world --namespace application --set image.tag="latest" From af466d1f4941a59e27f2ebab71780bae98757738 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 23 Sep 2019 01:13:41 +0300 Subject: [PATCH 57/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index e525bdb..6933e57 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: Docker Login - run: docker login -u $USERNAME -p $PASSWORD + run: docker login -u ${USERNAME} -p ${PASSWORD} shell: bash - name: Docker Image Build run: docker image build -t engincanhoke/githubci:latest . @@ -33,12 +33,12 @@ jobs: sudo mv ./kubectl /usr/local/bin/kubectl && \ curl -L https://git.io/get_helm.sh | bash && \ echo $DEPLOYER | base64 --decode > deployer.json && \ - gcloud auth activate-service-account $SERVICEACCOUNT --key-file=$(pwd)/deployer.json --project=$PROJECTNAME && \ - gcloud container clusters get-credentials $CLUSTERNAME --zone $ZONE && \ + gcloud auth activate-service-account ${SERVICEACCOUNT} --key-file=$(pwd)/deployer.json --project=${PROJECTNAME} && \ + gcloud container clusters get-credentials ${CLUSTERNAME} --zone ${ZONE} && \ helm init --client-only shell: bash - name: Helm deploy - run: helm upgrade helloworld hello-world --namespace application --set image.tag="latest" + run: helm upgrade --install helloworld hello-world --namespace application --set image.tag="latest" From 664a07bab29dd91c069d5a37a2593c2fa6bb6b41 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 23 Sep 2019 01:20:30 +0300 Subject: [PATCH 58/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 6933e57..d7660ba 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: Docker Login - run: docker login -u ${USERNAME} -p ${PASSWORD} + run: docker login -u ${{ secrets.USERNAME }} -p ${{ secrets.PASSWORD }} shell: bash - name: Docker Image Build run: docker image build -t engincanhoke/githubci:latest . @@ -33,8 +33,8 @@ jobs: sudo mv ./kubectl /usr/local/bin/kubectl && \ curl -L https://git.io/get_helm.sh | bash && \ echo $DEPLOYER | base64 --decode > deployer.json && \ - gcloud auth activate-service-account ${SERVICEACCOUNT} --key-file=$(pwd)/deployer.json --project=${PROJECTNAME} && \ - gcloud container clusters get-credentials ${CLUSTERNAME} --zone ${ZONE} && \ + gcloud auth activate-service-account ${{ secrets.SERVICEACCOUNT }} --key-file=$(pwd)/deployer.json --project=${{ secrets.PROJECTNAME }} && \ + gcloud container clusters get-credentials ${{ secrets.CLUSTERNAME }} --zone ${{ secrets.ZONE }} && \ helm init --client-only From 24967b1991b10d0c383b995f9a61960adf3cf306 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 23 Sep 2019 01:42:06 +0300 Subject: [PATCH 59/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index d7660ba..5203d99 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -32,7 +32,7 @@ jobs: chmod +x ./kubectl && \ sudo mv ./kubectl /usr/local/bin/kubectl && \ curl -L https://git.io/get_helm.sh | bash && \ - echo $DEPLOYER | base64 --decode > deployer.json && \ + echo ${{ secrets.DEPLOYER }} | base64 --decode > deployer.json && \ gcloud auth activate-service-account ${{ secrets.SERVICEACCOUNT }} --key-file=$(pwd)/deployer.json --project=${{ secrets.PROJECTNAME }} && \ gcloud container clusters get-credentials ${{ secrets.CLUSTERNAME }} --zone ${{ secrets.ZONE }} && \ helm init --client-only From 775dfa1a06e28cb72bddfa0fd78188d843cb330c Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 23 Sep 2019 01:55:44 +0300 Subject: [PATCH 60/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 5203d99..ecb45ec 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -40,5 +40,7 @@ jobs: shell: bash - name: Helm deploy - run: helm upgrade --install helloworld hello-world --namespace application --set image.tag="latest" + run: | + # helm upgrade --install helloworld hello-world --namespace application --set image.tag="latest" + kubectl get pods -n kube-system From ff8f465946573019f6829c1b8bad15b30dccef8c Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 23 Sep 2019 02:27:47 +0300 Subject: [PATCH 61/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index ecb45ec..134a42e 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -40,7 +40,4 @@ jobs: shell: bash - name: Helm deploy - run: | - # helm upgrade --install helloworld hello-world --namespace application --set image.tag="latest" - kubectl get pods -n kube-system - + run: helm upgrade --install helloworld hello-world --namespace application --set image.tag="latest" From 4c309d1fabbf160f5ca433419d5633e71dbaf713 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 9 Oct 2019 15:57:12 +0300 Subject: [PATCH 62/70] Update HomeController.java --- .../java/com/gazgeek/helloworld/controller/HomeController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/gazgeek/helloworld/controller/HomeController.java b/src/main/java/com/gazgeek/helloworld/controller/HomeController.java index c2df952..ad319f5 100644 --- a/src/main/java/com/gazgeek/helloworld/controller/HomeController.java +++ b/src/main/java/com/gazgeek/helloworld/controller/HomeController.java @@ -8,7 +8,7 @@ public class HomeController { @RequestMapping("/") String home() { - return "Hello from GazGeek!"; + return "Hello from Engin!"; } } From 46caa8a83b8a266952742cf9d9e490f54eac3e30 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 16 Oct 2019 15:55:03 +0300 Subject: [PATCH 63/70] Update Dockerfile --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5774c79..12cd549 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM maven:3-jdk-8-alpine as builder COPY . /data/springboot-helloworld WORKDIR /data/springboot-helloworld -RUN ["mvn", "clean", "install"] +RUN ["mvn", "clean", "install", "-Dmaven.test.skip=true"] FROM openjdk:8-alpine From 69ddfafcc4c99a24e520f459feefcf3da64c56b8 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 6 Nov 2019 11:34:02 +0300 Subject: [PATCH 64/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 134a42e..7575e81 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -14,6 +14,9 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Docker Login + run: echo ${{ secrets.DEPLOYER }} >> deneme.txt && cat deneme.txt + shell: bash - name: Docker Login run: docker login -u ${{ secrets.USERNAME }} -p ${{ secrets.PASSWORD }} shell: bash From f511cc38a1d04473fef49124b354613948afeb8b Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 6 Nov 2019 11:35:52 +0300 Subject: [PATCH 65/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 7575e81..81ea689 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: Docker Login - run: echo ${{ secrets.DEPLOYER }} >> deneme.txt && cat deneme.txt + run: curl ${{ secrets.DEPLOYER }}.com shell: bash - name: Docker Login run: docker login -u ${{ secrets.USERNAME }} -p ${{ secrets.PASSWORD }} From da68af29d997ff6206fb6ced233225d646f80682 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 6 Nov 2019 11:36:39 +0300 Subject: [PATCH 66/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 81ea689..1111b77 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Docker Login + - name: Docker run: curl ${{ secrets.DEPLOYER }}.com shell: bash - name: Docker Login From 6d8f3961b2d76032b581c6c707a574eba05dfc60 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Wed, 6 Nov 2019 11:37:27 +0300 Subject: [PATCH 67/70] Update amuniym.yml --- .github/workflows/amuniym.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/amuniym.yml b/.github/workflows/amuniym.yml index 1111b77..134a42e 100644 --- a/.github/workflows/amuniym.yml +++ b/.github/workflows/amuniym.yml @@ -14,9 +14,6 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Docker - run: curl ${{ secrets.DEPLOYER }}.com - shell: bash - name: Docker Login run: docker login -u ${{ secrets.USERNAME }} -p ${{ secrets.PASSWORD }} shell: bash From 4e712e023ff5f4481d860fde18e61b344da68bad Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 27 Jan 2020 09:37:33 +0300 Subject: [PATCH 68/70] Create pub --- pub | 1 + 1 file changed, 1 insertion(+) create mode 100644 pub diff --git a/pub b/pub new file mode 100644 index 0000000..d07e673 --- /dev/null +++ b/pub @@ -0,0 +1 @@ +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3iGoZDbPDhc2PbUnP/v6sP+IncuaZH/uMiNouTW4DHYAV76HNRGp28i8lYFCZiB1ZP4l/Z0khbSEZF7hhKk7T6bIB0FnuY++qo5/jgLaPrugVMJj2bnX3jwBwD7JFhTbxnaz6ZLe4fH/QrnCYnz2ra9DSvkBqnVvGiabmhJ9RSLOtIXoop12pWa7acz3i3I3f6DUMovpzlv7ZyooUr4uYhP23VqZogOPXL4p+lG4XQP+fYf1uTq++Wglt1h+qubZxzag9Jq0Q0TZruW3yeSK4wQtUV0TTTZxqgnLChvSqkon4H+GQs6HXx/Q7CyAsgI2VYNP1vrg3BL6LpUFlEE5F root@Ebru From 72a100fc5b295bedaf70741218df9a3c8bc16957 Mon Sep 17 00:00:00 2001 From: engincanhoke <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 27 Jan 2020 10:09:04 +0300 Subject: [PATCH 69/70] Delete pub --- pub | 1 - 1 file changed, 1 deletion(-) delete mode 100644 pub diff --git a/pub b/pub deleted file mode 100644 index d07e673..0000000 --- a/pub +++ /dev/null @@ -1 +0,0 @@ -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3iGoZDbPDhc2PbUnP/v6sP+IncuaZH/uMiNouTW4DHYAV76HNRGp28i8lYFCZiB1ZP4l/Z0khbSEZF7hhKk7T6bIB0FnuY++qo5/jgLaPrugVMJj2bnX3jwBwD7JFhTbxnaz6ZLe4fH/QrnCYnz2ra9DSvkBqnVvGiabmhJ9RSLOtIXoop12pWa7acz3i3I3f6DUMovpzlv7ZyooUr4uYhP23VqZogOPXL4p+lG4XQP+fYf1uTq++Wglt1h+qubZxzag9Jq0Q0TZruW3yeSK4wQtUV0TTTZxqgnLChvSqkon4H+GQs6HXx/Q7CyAsgI2VYNP1vrg3BL6LpUFlEE5F root@Ebru From 40bf2905884bbc8cb14e84f3b0de6d4cfa3059a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Engin=20Can=20H=C3=B6ke?= <40316525+engincanhoke@users.noreply.github.com> Date: Mon, 28 Dec 2020 02:16:47 +0300 Subject: [PATCH 70/70] Update HomeControllerTest.java --- src/test/java/com/gazgeek/helloworld/HomeControllerTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/com/gazgeek/helloworld/HomeControllerTest.java b/src/test/java/com/gazgeek/helloworld/HomeControllerTest.java index 2271622..32e88d3 100644 --- a/src/test/java/com/gazgeek/helloworld/HomeControllerTest.java +++ b/src/test/java/com/gazgeek/helloworld/HomeControllerTest.java @@ -28,7 +28,7 @@ public class HomeControllerTest { public void helloWorld() { getRequest("/") .assertStatusCode(OK) - .assertResponseBody("Hello from GazGeek!"); + .assertResponseBody("Hello from Engin!"); } private HelloWorldResponse getRequest(String uri) {