Skip to content

Commit

Permalink
chore: try pipeline tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbo committed Jun 7, 2024
1 parent d239ccf commit e795726
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 38 deletions.
5 changes: 0 additions & 5 deletions ci/partials/cancel-deployment.yml

This file was deleted.

4 changes: 0 additions & 4 deletions ci/partials/restage.yml

This file was deleted.

34 changes: 25 additions & 9 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
context: test

- get: node
- get: cf-image
- get: general-task

- do: *test

Expand Down Expand Up @@ -77,21 +77,22 @@ jobs:
params: {depth: 1}

- get: node
- get: cf-image
- get: general-task
- get: pipeline-tasks

- do: *test

- task: deploy
image: cf-image
image: general-task
file: src/ci/partials/deploy.yml
params:
<<: *email-cf

on_failure:
try:
task: cancel-deployment
image: cf-image
file: src/ci/partials/cancel-deployment.yml
image: general-task
file: pipeline-tasks/tasks/cancel-deployment.yml
params:
<<: *email-cf

Expand Down Expand Up @@ -121,13 +122,14 @@ jobs:
resource: src
passed: [set-pipeline]
params: {depth: 1}
- get: cf-image
- get: general-task
- get: pipeline-tasks
- get: nightly
trigger: true

- task: restage
image: cf-image
file: src/ci/partials/restage.yml
image: general-task
file: pipeline-tasks/tasks/restage.yml
params:
<<: *email-cf

Expand Down Expand Up @@ -165,6 +167,12 @@ resources:
branch: main
commit_verification_keys: ((cloud-gov-pages-gpg-keys))

- name: pipeline-tasks
type: git
source:
uri: ((pipeline-tasks-git-url))
branch: main

- name: nightly
type: time
source:
Expand All @@ -186,7 +194,7 @@ resources:
aws_region: us-gov-west-1
tag: latest

- name: cf-image
- name: general-task
type: registry-image
source:
aws_access_key_id: ((ecr-aws-key))
Expand All @@ -200,6 +208,14 @@ resources:
# 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: pull-request
type: registry-image
Expand Down
10 changes: 0 additions & 10 deletions ci/tasks/cancel-deployment.sh

This file was deleted.

10 changes: 0 additions & 10 deletions ci/tasks/restage.sh

This file was deleted.

0 comments on commit e795726

Please sign in to comment.