diff --git a/ci/partials/restage.yml b/ci/partials/restage.yml deleted file mode 100644 index ab4c309c..00000000 --- a/ci/partials/restage.yml +++ /dev/null @@ -1,5 +0,0 @@ -platform: linux -inputs: [name: src] -run: - dir: src - path: ci/tasks/restage.sh diff --git a/ci/pipeline-dev.yml b/ci/pipeline-dev.yml index 0082fcde..21636105 100644 --- a/ci/pipeline-dev.yml +++ b/ci/pipeline-dev.yml @@ -1,6 +1,5 @@ --- -############################ -# SHARED +#@ load("funcs.lib.yml", "slack_hook") env-cf: &env-cf CF_API: https://api.fr.cloud.gov @@ -9,32 +8,35 @@ env-cf: &env-cf CF_ORG: gsa-18f-federalist CF_SPACE: ((deploy-env)) -############################ -# JOBS +#! JOBS jobs: - - name: set-pipeline - serial: true plan: - get: src - resource: pr-((git-branch)) + resource: pr-((deploy-env)) trigger: true + - get: pipeline-tasks + - get: general-task + - task: init + image: general-task + file: pipeline-tasks/tasks/init.yml + params: + PIPELINE_YML: src/ci/pipeline-dev.yml - set_pipeline: build-container - file: src/ci/pipeline-dev.yml + file: compiled/set-pipeline.yml instance_vars: deploy-env: ((deploy-env)) - git-branch: ((git-branch)) - name: test-((deploy-env)) plan: - get: src - resource: pr-((git-branch)) + resource: pr-((deploy-env)) trigger: true passed: [set-pipeline] - put: src - resource: pr-((git-branch)) + resource: pr-((deploy-env)) params: path: src status: pending @@ -47,7 +49,7 @@ jobs: on_success: put: src - resource: pr-((git-branch)) + resource: pr-((deploy-env)) params: path: src status: success @@ -57,28 +59,21 @@ jobs: on_failure: in_parallel: - put: src - resource: pr-((git-branch)) + resource: pr-((deploy-env)) params: path: src status: failure base_context: concourse context: test-pages-build-container-((deploy-env)) - - put: slack - params: - text: | - :x: FAILED: pages build container tests on ((deploy-env)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) + - #@ slack_hook("failure", "tests") - name: deploy-((deploy-env)) plan: - get: src - resource: pr-((git-branch)) + resource: pr-((deploy-env)) trigger: true passed: [test-((deploy-env))] - - get: cf-image + - get: general-task - get: oci-build-task - task: build privileged: true @@ -89,7 +84,7 @@ jobs: params: image: image/image.tar - task: deploy - image: cf-image + image: general-task file: src/ci/partials/deploy.yml params: <<: *env-cf @@ -101,57 +96,34 @@ jobs: CF_DOCKER_USERNAME: ((ecr-aws-key)) CF_DOCKER_PASSWORD: ((ecr-aws-secret)) - on_failure: - put: slack - params: - text: | - :x: FAILED: pages build container deployment on ((deploy-env)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) + on_failure: #@ slack_hook("failure", "deployment") - name: nightly-((deploy-env)) plan: - get: nightly trigger: true - get: src - resource: pr-((git-branch)) - - get: cf-image + resource: pr-((deploy-env)) + - get: general-task + - get: pipeline-tasks - task: restage - image: cf-image - file: src/ci/partials/restage.yml + image: general-task + file: pipeline-tasks/tasks/restage.yml params: <<: *env-cf CF_APP_NAME: pages-build-container-((deploy-env)) - on_success: - put: slack - params: - text: | - :white_check_mark: SUCCESS: pages build container nightly restage on ((deploy-env)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) - on_failure: - put: slack - params: - text: | - :x: FAILED: pages build container nightly restage on ((deploy-env)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) + on_success: #@ slack_hook("success", "nightly restage") + on_failure: #@ slack_hook("failure", "nightly restage") - name: audit-dependencies plan: - get: src - resource: pr-((git-branch)) + resource: pr-((deploy-env)) trigger: true passed: [set-pipeline] - put: src - resource: pr-((git-branch)) + resource: pr-((deploy-env)) params: path: src status: pending @@ -166,50 +138,35 @@ jobs: on_failure: in_parallel: - put: src - resource: pr-((git-branch)) + resource: pr-((deploy-env)) params: path: src status: failure base_context: concourse context: audit-dependencies - - put: slack - params: - text: | - :x: FAILED: pages build container dependency audit on ((git-branch)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME?vars.deploy-env="((deploy-env))"&vars.git-branch="((git-branch))"|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) + - #@ slack_hook("failure", "dependency audit") on_success: in_parallel: - put: src - resource: pr-((git-branch)) + resource: pr-((deploy-env)) params: path: src status: success base_context: concourse context: audit-dependencies - - put: slack - params: - text: | - :white_check_mark: SUCCESS: Successfully passed pages build container dependency audit on ((git-branch)) - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) + - #@ slack_hook("success", "dependency audit") -############################ -# RESOURCES +#! RESOURCES resources: - - - name: pr-((git-branch)) + - name: pr-((deploy-env)) type: pull-request check_every: 1m source: repository: ((build-container-repository-path)) access_token: ((gh-access-token)) - base_branch: ((git-branch)) + base_branch: main disable_forks: true ignore_drafts: false @@ -220,11 +177,6 @@ resources: stop: 1:00 AM location: America/New_York - - name: slack - type: slack-notification - source: - url: ((slack-webhook-url)) - - name: image-repository type: registry-image source: @@ -234,70 +186,17 @@ resources: aws_region: us-gov-west-1 tag: pages-((deploy-env)) + - name: slack + - name: pipeline-tasks - name: python - type: registry-image - source: - aws_access_key_id: ((ecr-aws-key)) - aws_secret_access_key: ((ecr-aws-secret)) - repository: pages-python-v3.11 - aws_region: us-gov-west-1 - tag: latest - - - name: cf-image - type: registry-image - source: - aws_access_key_id: ((ecr-aws-key)) - aws_secret_access_key: ((ecr-aws-secret)) - repository: general-task - aws_region: us-gov-west-1 - tag: latest - + - name: general-task - name: oci-build-task - type: registry-image - source: - aws_access_key_id: ((ecr-aws-key)) - aws_secret_access_key: ((ecr-aws-secret)) - repository: oci-build-task - aws_region: us-gov-west-1 - tag: latest -############################ -# RESOURCE TYPES +#! RESOURCE TYPES resource_types: - + - name: git - name: slack-notification - type: registry-image - source: - aws_access_key_id: ((ecr_aws_key)) - aws_secret_access_key: ((ecr_aws_secret)) - repository: slack-notification-resource - aws_region: us-gov-west-1 - tag: latest - - name: pull-request - type: registry-image - source: - aws_access_key_id: ((ecr_aws_key)) - aws_secret_access_key: ((ecr_aws_secret)) - repository: github-pr-resource - aws_region: us-gov-west-1 - tag: latest - - name: time - type: registry-image - source: - aws_access_key_id: ((ecr_aws_key)) - aws_secret_access_key: ((ecr_aws_secret)) - repository: time-resource - aws_region: us-gov-west-1 - tag: latest - - name: registry-image - type: registry-image - source: - aws_access_key_id: ((ecr_aws_key)) - aws_secret_access_key: ((ecr_aws_secret)) - repository: registry-image-resource - aws_region: us-gov-west-1 - tag: latest diff --git a/ci/pipeline-production.yml b/ci/pipeline-production.yml new file mode 100644 index 00000000..7aa552c2 --- /dev/null +++ b/ci/pipeline-production.yml @@ -0,0 +1,152 @@ +--- +#@ load("funcs.lib.yml", "slack_hook") + +env-cf: &env-cf + CF_API: https://api.fr.cloud.gov + CF_USERNAME: ((((deploy-env))-cf-username)) + CF_PASSWORD: ((((deploy-env))-cf-password)) + CF_ORG: gsa-18f-federalist + CF_SPACE: ((deploy-env)) + +#! JOBS + +jobs: + - name: set-pipeline + plan: + - get: src + resource: src-((deploy-env))-tagged + params: { depth: 1 } + trigger: true + - get: pipeline-tasks + - get: general-task + - task: init + image: general-task + file: pipeline-tasks/tasks/init.yml + params: + PIPELINE_YML: src/ci/pipeline.yml + - set_pipeline: build-container + file: compiled/set-pipeline.yml + instance_vars: + deploy-env: ((deploy-env)) + + - name: test-((deploy-env)) + plan: + - get: src + resource: src-((deploy-env))-tagged + trigger: true + params: { depth: 1 } + - get: python + - task: test + image: python + file: src/ci/partials/test.yml + + on_failure: #@ slack_hook("failure", "tests") + + - name: deploy-((deploy-env)) + plan: + - get: src + resource: src-((deploy-env))-tagged + trigger: true + params: { depth: 1 } + passed: [test-((deploy-env))] + - get: general-task + - get: oci-build-task + - task: build + privileged: true + image: oci-build-task + file: src/ci/partials/build.yml + - put: image-repository + params: + image: image/image.tar + - task: deploy + image: general-task + file: src/ci/partials/deploy.yml + params: + <<: *env-cf + CF_APP_NAME: pages-build-container-((deploy-env)) + CF_MANIFEST: .cloudgov/manifest.yml + CF_VARS_FILE: .cloudgov/vars/pages-((deploy-env)).yml + IMAGE_REPOSITORY: ../image-repository/repository + IMAGE_TAG: pages-((deploy-env)) + CF_DOCKER_USERNAME: ((ecr-aws-key)) + CF_DOCKER_PASSWORD: ((ecr-aws-secret)) + + on_success: #@ slack_hook("success", "deployment") + on_failure: #@ slack_hook("failure", "deployment") + + - name: nightly-((deploy-env)) + plan: + - get: nightly + trigger: true + - get: src + resource: src-((deploy-env))-tagged + trigger: true + params: { depth: 1 } + - get: general-task + - task: restage + image: general-task + file: src/ci/partials/restage.yml + params: + <<: *env-cf + CF_APP_NAME: pages-build-container-((deploy-env)) + on_success: #@ slack_hook("success", "nightly restage") + on_failure: #@ slack_hook("failure", "nightly restage") + + - name: audit-dependencies + plan: + - get: src + resource: src-((deploy-env))-tagged + trigger: true + passed: [set-pipeline] + + - get: python + - task: pip-audit + image: python + file: src/ci/partials/audit.yml + + on_failure: #@ slack_hook("failure", "dependency audit") + on_success: #@ slack_hook("success", "dependency audit") + +#! RESOURCES + +resources: + - name: src-((deploy-env))-tagged + type: git + icon: github + source: + uri: ((git-base-url))/((build-container-repository-path)) + branch: main + commit_verification_keys: ((cloud-gov-pages-gpg-keys)) + tag_filter: 0.*.* + fetch_tags: true + + - name: nightly + type: time + source: + start: 12:00 AM + stop: 1:00 AM + location: America/New_York + + - name: image-repository + type: registry-image + source: + aws_access_key_id: ((ecr-aws-key)) + aws_secret_access_key: ((ecr-aws-secret)) + repository: pages-build-container + aws_region: us-gov-west-1 + tag: pages-((deploy-env)) + + - name: slack + - name: pipeline-tasks + - name: python + - name: general-task + - name: oci-build-task + +#! RESOURCE TYPES + +resource_types: + - name: git + - name: slack-notification + - name: pull-request + - name: time + - name: registry-image diff --git a/ci/pipeline-staging.yml b/ci/pipeline-staging.yml new file mode 100644 index 00000000..ae77ac7b --- /dev/null +++ b/ci/pipeline-staging.yml @@ -0,0 +1,150 @@ +--- +#@ load("funcs.lib.yml", "slack_hook") + +env-cf: &env-cf + CF_API: https://api.fr.cloud.gov + CF_USERNAME: ((((deploy-env))-cf-username)) + CF_PASSWORD: ((((deploy-env))-cf-password)) + CF_ORG: gsa-18f-federalist + CF_SPACE: ((deploy-env)) + +#! JOBS + +jobs: + - name: set-pipeline + plan: + - get: src + resource: src-((deploy-env)) + params: { depth: 1 } + trigger: true + - get: pipeline-tasks + - get: general-task + - task: init + image: general-task + file: pipeline-tasks/tasks/init.yml + params: + PIPELINE_YML: src/ci/pipeline.yml + - set_pipeline: build-container + file: compiled/set-pipeline.yml + instance_vars: + deploy-env: ((deploy-env)) + + - name: test-((deploy-env)) + plan: + - get: src + resource: src-((deploy-env)) + trigger: true + params: { depth: 1 } + - get: python + - task: test + image: python + file: src/ci/partials/test.yml + + on_failure: #@ slack_hook("failure", "tests") + + - name: deploy-((deploy-env)) + plan: + - get: src + resource: src-((deploy-env)) + trigger: true + params: { depth: 1 } + passed: [test-((deploy-env))] + - get: general-task + - get: oci-build-task + - task: build + privileged: true + image: oci-build-task + file: src/ci/partials/build.yml + - put: image-repository + params: + image: image/image.tar + - task: deploy + image: general-task + file: src/ci/partials/deploy.yml + params: + <<: *env-cf + CF_APP_NAME: pages-build-container-((deploy-env)) + CF_MANIFEST: .cloudgov/manifest.yml + CF_VARS_FILE: .cloudgov/vars/pages-((deploy-env)).yml + IMAGE_REPOSITORY: ../image-repository/repository + IMAGE_TAG: pages-((deploy-env)) + CF_DOCKER_USERNAME: ((ecr-aws-key)) + CF_DOCKER_PASSWORD: ((ecr-aws-secret)) + + on_success: #@ slack_hook("success", "deployment") + on_failure: #@ slack_hook("failure", "deployment") + + - name: nightly-((deploy-env)) + plan: + - get: nightly + trigger: true + - get: src + resource: src-((deploy-env)) + trigger: true + params: { depth: 1 } + - get: general-task + - task: restage + image: general-task + file: src/ci/partials/restage.yml + params: + <<: *env-cf + CF_APP_NAME: pages-build-container-((deploy-env)) + on_success: #@ slack_hook("success", "nightly restage") + on_failure: #@ slack_hook("failure", "nightly restage") + + - name: audit-dependencies + plan: + - get: src + resource: src-((deploy-env)) + trigger: true + passed: [set-pipeline] + + - get: python + - task: pip-audit + image: python + file: src/ci/partials/audit.yml + + on_failure: #@ slack_hook("failure", "dependency audit") + on_success: #@ slack_hook("success", "dependency audit") + +#! RESOURCES + +resources: + - name: src-((deploy-env)) + type: git + icon: github + source: + uri: ((git-base-url))/((build-container-repository-path)) + branch: main + commit_verification_keys: ((cloud-gov-pages-gpg-keys)) + + - name: nightly + type: time + source: + start: 12:00 AM + stop: 1:00 AM + location: America/New_York + + - name: image-repository + type: registry-image + source: + aws_access_key_id: ((ecr-aws-key)) + aws_secret_access_key: ((ecr-aws-secret)) + repository: pages-build-container + aws_region: us-gov-west-1 + tag: pages-((deploy-env)) + + - name: slack + - name: pipeline-tasks + - name: python + - name: general-task + - name: oci-build-task + +#! RESOURCE TYPES + +resource_types: + - name: git + - name: slack-notification + - name: pull-request + - name: time + - name: registry-image diff --git a/ci/pipeline.yml b/ci/pipeline.yml deleted file mode 100644 index f5bcf264..00000000 --- a/ci/pipeline.yml +++ /dev/null @@ -1,323 +0,0 @@ ---- -############################ -# SHARED - -env-cf: &env-cf - CF_API: https://api.fr.cloud.gov - CF_USERNAME: ((((deploy-env))-cf-username)) - CF_PASSWORD: ((((deploy-env))-cf-password)) - CF_ORG: gsa-18f-federalist - CF_SPACE: ((deploy-env)) - -############################ -# JOBS - -jobs: - - - name: set-pipeline - serial: true - plan: - - get: src - resource: src-((deploy-env)) - params: {depth: 1} - trigger: true - - set_pipeline: build-container - file: src/ci/pipeline.yml - instance_vars: - deploy-env: ((deploy-env)) - git-branch: ((git-branch)) - - - name: test-pr-((git-branch)) - plan: - - get: src - resource: pr-((git-branch)) - trigger: true - version: every - - - put: src - resource: pr-((git-branch)) - params: - path: src - status: pending - base_context: concourse - context: test-pages-build-container-((deploy-env)) - - - get: python - - task: test - image: python - file: src/ci/partials/test.yml - - on_failure: - put: src - resource: pr-((git-branch)) - params: - path: src - status: failure - base_context: concourse - context: test-pages-build-container-((deploy-env)) - - on_success: - put: src - resource: pr-((git-branch)) - params: - path: src - status: success - base_context: concourse - context: test-pages-build-container-((deploy-env)) - - - name: test-((deploy-env)) - plan: - - get: src - resource: src-((deploy-env)) - trigger: true - params: {depth: 1} - - get: python - - task: test - image: python - file: src/ci/partials/test.yml - - on_failure: - put: slack - params: - text: | - :x: FAILED: pages build container tests on ((deploy-env)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) - - - name: deploy-((deploy-env)) - plan: - - get: src - resource: src-((deploy-env)) - trigger: true - params: {depth: 1} - passed: [test-((deploy-env))] - - get: cf-image - - get: oci-build-task - - task: build - privileged: true - image: oci-build-task - file: src/ci/partials/build.yml - - put: image-repository - params: - image: image/image.tar - - task: deploy - image: cf-image - file: src/ci/partials/deploy.yml - params: - <<: *env-cf - CF_APP_NAME: pages-build-container-((deploy-env)) - CF_MANIFEST: .cloudgov/manifest.yml - CF_VARS_FILE: .cloudgov/vars/pages-((deploy-env)).yml - IMAGE_REPOSITORY: ../image-repository/repository - IMAGE_TAG: pages-((deploy-env)) - CF_DOCKER_USERNAME: ((ecr-aws-key)) - CF_DOCKER_PASSWORD: ((ecr-aws-secret)) - - on_success: - put: slack - params: - text: | - :white_check_mark: SUCCESS: Successfully deployed pages build containers on ((deploy-env)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) - - on_failure: - put: slack - params: - text: | - :x: FAILED: pages build container deployment on ((deploy-env)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) - - - name: nightly-((deploy-env)) - plan: - - get: nightly - trigger: true - - get: src - resource: src-((deploy-env)) - trigger: true - params: {depth: 1} - - get: cf-image - - task: restage - image: cf-image - file: src/ci/partials/restage.yml - params: - <<: *env-cf - CF_APP_NAME: pages-build-container-((deploy-env)) - on_success: - put: slack - params: - text: | - :white_check_mark: SUCCESS: pages build container nightly restage on ((deploy-env)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) - on_failure: - put: slack - params: - text: | - :x: FAILED: pages build container nightly restage on ((deploy-env)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) - - - name: audit-dependencies - plan: - - get: src - resource: src-((deploy-env)) - trigger: true - passed: [set-pipeline] - - - get: python - - task: pip-audit - image: python - file: src/ci/partials/audit.yml - - on_failure: - put: slack - params: - text: | - :x: FAILED: pages build container dependency audit on ((deploy-env)) - <$ATC_EXTERNAL_URL/teams/$BUILD_TEAM_NAME/pipelines/$BUILD_PIPELINE_NAME/jobs/$BUILD_JOB_NAME/builds/$BUILD_NAME?vars.deploy-env="((deploy-env))"&vars.git-branch="((git-branch))"|View build details> - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) - - on_success: - in_parallel: - put: slack - params: - text: | - :white_check_mark: SUCCESS: Successfully passed pages build container dependency audit on ((deploy-env)) - channel: ((slack-channel)) - username: ((slack-username)) - icon_url: ((slack-icon-url)) - -############################ -# RESOURCES - -resources: - - - name: src-((deploy-env)) - type: git - icon: github - source: - uri: ((git-base-url))/((build-container-repository-path)) - branch: ((git-branch)) - commit_verification_keys: ((cloud-gov-pages-gpg-keys)) - - - name: pr-((git-branch)) - type: pull-request - check_every: 1m - source: - repository: ((build-container-repository-path)) - access_token: ((gh-access-token)) - base_branch: ((git-branch)) - disable_forks: true - ignore_drafts: false - - - name: nightly - type: time - source: - start: 12:00 AM - stop: 1:00 AM - location: America/New_York - - - name: slack - type: slack-notification - source: - url: ((slack-webhook-url)) - - - name: image-repository - type: registry-image - source: - aws_access_key_id: ((ecr-aws-key)) - aws_secret_access_key: ((ecr-aws-secret)) - repository: pages-build-container - aws_region: us-gov-west-1 - tag: pages-((deploy-env)) - - - name: python - type: registry-image - source: - aws_access_key_id: ((ecr-aws-key)) - aws_secret_access_key: ((ecr-aws-secret)) - repository: pages-python-v3.11 - aws_region: us-gov-west-1 - tag: latest - - - name: cf-image - type: registry-image - source: - aws_access_key_id: ((ecr-aws-key)) - aws_secret_access_key: ((ecr-aws-secret)) - repository: general-task - aws_region: us-gov-west-1 - tag: latest - - - name: oci-build-task - type: registry-image - source: - aws_access_key_id: ((ecr-aws-key)) - aws_secret_access_key: ((ecr-aws-secret)) - repository: oci-build-task - aws_region: us-gov-west-1 - tag: latest - -############################ -# RESOURCE TYPES - -resource_types: - - - name: git - type: registry-image - source: - aws_access_key_id: ((ecr_aws_key)) - aws_secret_access_key: ((ecr_aws_secret)) - repository: git-resource - aws_region: us-gov-west-1 - tag: latest - - - name: slack-notification - type: registry-image - source: - aws_access_key_id: ((ecr_aws_key)) - aws_secret_access_key: ((ecr_aws_secret)) - repository: slack-notification-resource - aws_region: us-gov-west-1 - tag: latest - - - name: pull-request - type: registry-image - source: - aws_access_key_id: ((ecr_aws_key)) - aws_secret_access_key: ((ecr_aws_secret)) - repository: github-pr-resource - aws_region: us-gov-west-1 - tag: latest - - - name: time - type: registry-image - source: - aws_access_key_id: ((ecr_aws_key)) - aws_secret_access_key: ((ecr_aws_secret)) - repository: time-resource - aws_region: us-gov-west-1 - tag: latest - - - name: registry-image - type: registry-image - source: - aws_access_key_id: ((ecr_aws_key)) - aws_secret_access_key: ((ecr_aws_secret)) - repository: registry-image-resource - aws_region: us-gov-west-1 - tag: latest diff --git a/ci/tasks/restage.sh b/ci/tasks/restage.sh deleted file mode 100755 index 3bcce616..00000000 --- a/ci/tasks/restage.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -set -e - -cf api $CF_API -cf auth - -cf t -o $CF_ORG -s $CF_SPACE - -cf restage $CF_APP_NAME \ No newline at end of file