From 5f1f00fbd3025ccfaeccf5f965a27d61c51d5577 Mon Sep 17 00:00:00 2001 From: Pramodh M Date: Thu, 20 Jan 2022 10:09:23 +0530 Subject: [PATCH 1/5] Create workflow.yml --- .github/workflows/workflow.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml new file mode 100644 index 0000000..69d5cb0 --- /dev/null +++ b/.github/workflows/workflow.yml @@ -0,0 +1,34 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the main branch + pull_request: + branches: [ main ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# 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 "build" + build: + # 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: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build, + echo test, and deploy your project. From ea387f12c3d68fac65319798019ee59aa7d91431 Mon Sep 17 00:00:00 2001 From: Pramodh M Date: Thu, 20 Jan 2022 10:17:12 +0530 Subject: [PATCH 2/5] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a5de976..463c71a 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ -# glowing-lamp \ No newline at end of file +# glowing-lamp +status-check From 546240c257a9b16080364377c4f71f3c9869df1b Mon Sep 17 00:00:00 2001 From: Pramodh M Date: Thu, 20 Jan 2022 10:18:10 +0530 Subject: [PATCH 3/5] Update workflow.yml --- .github/workflows/workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 69d5cb0..e03c8bd 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -25,7 +25,7 @@ jobs: # Runs a single command using the runners shell - name: Run a one-line script - run: echo Hello, world! + run: echoa Hello, world! # Runs a set of commands using the runners shell - name: Run a multi-line script From 0d4db20657d00d418fcb967d32b7ee442dbb76b9 Mon Sep 17 00:00:00 2001 From: Pramodh M Date: Thu, 20 Jan 2022 10:19:58 +0530 Subject: [PATCH 4/5] Update workflow.yml --- .github/workflows/workflow.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index e03c8bd..69d5cb0 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -25,7 +25,7 @@ jobs: # Runs a single command using the runners shell - name: Run a one-line script - run: echoa Hello, world! + run: echo Hello, world! # Runs a set of commands using the runners shell - name: Run a multi-line script From 2e3265021c79e4624e7ea3aa71dbc6843dcb78ea Mon Sep 17 00:00:00 2001 From: Pramodh M Date: Thu, 20 Jan 2022 11:00:31 +0530 Subject: [PATCH 5/5] Update workflow.yml --- .github/workflows/workflow.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 69d5cb0..51883d6 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -14,10 +14,10 @@ on: # 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 "build" - build: + build-staging: # The type of runner that the job will run on runs-on: ubuntu-latest - + environment: Staging # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it @@ -27,8 +27,16 @@ jobs: - name: Run a one-line script run: echo Hello, world! - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build, - echo test, and deploy your project. + build-prod: + # The type of runner that the job will run on + runs-on: ubuntu-latest + environment: Prod + needs: build-staging + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world!