From cb0a0d127c8ed5f435ffe27de7f681d7208400ce Mon Sep 17 00:00:00 2001 From: Umesh33456 <101867309+Umesh33456@users.noreply.github.com> Date: Tue, 28 Jun 2022 16:32:13 +0530 Subject: [PATCH 1/5] testing --- Jenkinsfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 17d38b10..a65fce2e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,3 +19,14 @@ pipeline { } } } + + + + + +fneoje + +enoihe + + +referhejy From 502b196e3d2beffff72c1a69bc72c3054636ef97 Mon Sep 17 00:00:00 2001 From: Umesh33456 <101867309+Umesh33456@users.noreply.github.com> Date: Tue, 28 Jun 2022 16:37:58 +0530 Subject: [PATCH 2/5] Delete Jenkinsfile --- Jenkinsfile | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index a65fce2e..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,32 +0,0 @@ -pipeline { - agent any - - stages { - stage('Validate') { - steps { - sh 'mvn validate' - } - } - stage('Unit Test') { - steps { - sh 'mvn test' - } - } - stage('Build') { - steps { - sh 'mvn package' - } - } - } -} - - - - - -fneoje - -enoihe - - -referhejy From 7c7d33ec5be9ccfed741d8e4bca5cd265fa73352 Mon Sep 17 00:00:00 2001 From: Umesh33456 <101867309+Umesh33456@users.noreply.github.com> Date: Thu, 14 Jul 2022 19:38:41 +0530 Subject: [PATCH 3/5] Create manual.yml --- .github/workflows/manual.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/manual.yml diff --git a/.github/workflows/manual.yml b/.github/workflows/manual.yml new file mode 100644 index 00000000..47f24e11 --- /dev/null +++ b/.github/workflows/manual.yml @@ -0,0 +1,30 @@ +# This is a basic workflow that is manually triggered + +name: Manual workflow + +# Controls when the action will run. Workflow runs when manually triggered using the UI +# or API. +on: + workflow_dispatch: + # Inputs the workflow accepts. + inputs: + name: + # Friendly description to be shown in the UI instead of 'name' + description: 'Person to greet' + # Default value if no value is explicitly provided + default: 'World' + # Input has to be provided for the workflow to run + required: true + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "greet" + greet: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Runs a single command using the runners shell + - name: Send greeting + run: echo "Hello ${{ github.event.inputs.name }}" From 57122386ee814593ec1e693f7e9d0e2da855e3b8 Mon Sep 17 00:00:00 2001 From: Umesh33456 <101867309+Umesh33456@users.noreply.github.com> Date: Wed, 20 Jul 2022 15:57:33 +0530 Subject: [PATCH 4/5] Create check_repo --- .github/workflows/check_repo | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/check_repo diff --git a/.github/workflows/check_repo b/.github/workflows/check_repo new file mode 100644 index 00000000..5257715f --- /dev/null +++ b/.github/workflows/check_repo @@ -0,0 +1,40 @@ +name: "Push repo to aws github codecommit" + +# if you want manually trigger this action pls unmark this line +# on: [ workflow_dispatch ] +on: + push: + branches: + - '*' + +jobs: + build: + runs-on: ubuntu-latest + timeout-minutes: 5 + + steps: + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Extract branch name + shell: bash + run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" + id: extract_branch + + - name: Push to AWS CodeCommit + env: + CODECOMMIT_HOST: ${{ secrets.CODECOMMIT_REPO_HOST }} + CODECOMMIT_REPO_URL: ${{ secrets.CODECOMMIT_REPO_URL }} + CODECOMMIT_SSH_CONFIG: ${{ secrets.CODECOMMIT_SSH_CONFIG }} + CODECOMMIT_SSH_PRIVATE_KEY: ${{ secrets.CODECOMMIT_SSH_PRIVATE_KEY }} + BRANCH_NAME: ${{ steps.extract_branch.outputs.branch }} + shell: bash + run: | + mkdir ~/.ssh + echo "$CODECOMMIT_SSH_PRIVATE_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa + echo "$CODECOMMIT_SSH_CONFIG" > ~/.ssh/config && chmod 600 ~/.ssh/config + ssh-keyscan "$CODECOMMIT_HOST" >> ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts + git remote add codecommit "$CODECOMMIT_REPO_URL" + git push codecommit ${{ env.BRANCH_NAME }}:${{ env.BRANCH_NAME }} -f From a5ca529b27136122010045bdf4638d61d80eec42 Mon Sep 17 00:00:00 2001 From: Umesh33456 <101867309+Umesh33456@users.noreply.github.com> Date: Wed, 20 Jul 2022 16:32:05 +0530 Subject: [PATCH 5/5] Rename check_repo to check_repo.yml --- .github/workflows/{check_repo => check_repo.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{check_repo => check_repo.yml} (100%) diff --git a/.github/workflows/check_repo b/.github/workflows/check_repo.yml similarity index 100% rename from .github/workflows/check_repo rename to .github/workflows/check_repo.yml