From 559fd976e283ae4e9868ae91407f646da7d6fadd Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Fri, 5 Mar 2021 09:32:54 -0500 Subject: [PATCH 1/3] Update alibabacloud.yml --- ci/alibabacloud.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/alibabacloud.yml b/ci/alibabacloud.yml index 5d457d6..82e7dc0 100644 --- a/ci/alibabacloud.yml +++ b/ci/alibabacloud.yml @@ -16,6 +16,9 @@ # # 4. Change the values for the REGION_ID, REGISTRY, NAMESPACE, IMAGE, ACK_CLUSTER_ID, and ACK_DEPLOYMENT_NAME. # +# 5. Create an environment named "production". +# For instructions see https://docs.github.com/en/actions/reference/environments#creating-an-environment. +# name: Build and Deploy to ACK @@ -42,6 +45,7 @@ env: jobs: build: runs-on: ubuntu-latest + environment: production steps: - name: Checkout From c451f7ec4794b5f8fbf264bfdbd530a77fe12cdc Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Fri, 5 Mar 2021 09:34:17 -0500 Subject: [PATCH 2/3] Update aws.yml --- ci/aws.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/aws.yml b/ci/aws.yml index 40094ae..a3defb3 100644 --- a/ci/aws.yml +++ b/ci/aws.yml @@ -22,6 +22,9 @@ # 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. # See the documentation for each action used below for the recommended IAM policies for this IAM user, # and best practices on handling the access key credentials. +# +# 5. Create an environment named "production". +# For instructions see https://docs.github.com/en/actions/reference/environments#creating-an-environment. on: release: @@ -33,6 +36,7 @@ jobs: deploy: name: Deploy runs-on: ubuntu-latest + environment: production steps: - name: Checkout @@ -77,4 +81,4 @@ jobs: task-definition: ${{ steps.task-def.outputs.task-definition }} service: sample-app-service cluster: default - wait-for-service-stability: true \ No newline at end of file + wait-for-service-stability: true From 761b09ecde3c6f9772a9b38b86beeccf8e7c7bc0 Mon Sep 17 00:00:00 2001 From: John Bohannon Date: Fri, 5 Mar 2021 09:44:31 -0500 Subject: [PATCH 3/3] add production environment --- ci/alibabacloud.yml | 3 --- ci/aws.yml | 3 --- ci/ibm.yml | 1 + ci/openshift.yml | 1 + ci/tencent.yml | 1 + ci/terraform.yml | 1 + 6 files changed, 4 insertions(+), 6 deletions(-) diff --git a/ci/alibabacloud.yml b/ci/alibabacloud.yml index 82e7dc0..9ccc033 100644 --- a/ci/alibabacloud.yml +++ b/ci/alibabacloud.yml @@ -16,9 +16,6 @@ # # 4. Change the values for the REGION_ID, REGISTRY, NAMESPACE, IMAGE, ACK_CLUSTER_ID, and ACK_DEPLOYMENT_NAME. # -# 5. Create an environment named "production". -# For instructions see https://docs.github.com/en/actions/reference/environments#creating-an-environment. -# name: Build and Deploy to ACK diff --git a/ci/aws.yml b/ci/aws.yml index a3defb3..8b10116 100644 --- a/ci/aws.yml +++ b/ci/aws.yml @@ -22,9 +22,6 @@ # 4. Store an IAM user access key in GitHub Actions secrets named `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`. # See the documentation for each action used below for the recommended IAM policies for this IAM user, # and best practices on handling the access key credentials. -# -# 5. Create an environment named "production". -# For instructions see https://docs.github.com/en/actions/reference/environments#creating-an-environment. on: release: diff --git a/ci/ibm.yml b/ci/ibm.yml index 8af050f..a8502cd 100644 --- a/ci/ibm.yml +++ b/ci/ibm.yml @@ -28,6 +28,7 @@ jobs: setup-build-publish-deploy: name: Setup, Build, Publish, and Deploy runs-on: ubuntu-latest + environment: production steps: - name: Checkout diff --git a/ci/openshift.yml b/ci/openshift.yml index d34131f..8a4875d 100644 --- a/ci/openshift.yml +++ b/ci/openshift.yml @@ -64,6 +64,7 @@ jobs: openshift-ci-cd: name: Build and deploy to OpenShift runs-on: ubuntu-20.04 + environment: production steps: - uses: actions/checkout@v2 diff --git a/ci/tencent.yml b/ci/tencent.yml index 2d4ad03..1a059a6 100644 --- a/ci/tencent.yml +++ b/ci/tencent.yml @@ -30,6 +30,7 @@ jobs: setup-build-publish-deploy: name: Setup, Build, Publish, and Deploy runs-on: ubuntu-latest + environment: production steps: - name: Checkout diff --git a/ci/terraform.yml b/ci/terraform.yml index e6cf027..589f1f3 100644 --- a/ci/terraform.yml +++ b/ci/terraform.yml @@ -54,6 +54,7 @@ jobs: terraform: name: 'Terraform' runs-on: ubuntu-latest + environment: production # Use the Bash shell regardless whether the GitHub Actions runner is ubuntu-latest, macos-latest, or windows-latest defaults: