Skip to content

Commit 2ebe406

Browse files
committed
update CI/CD
1 parent 3f71ee1 commit 2ebe406

File tree

4 files changed

+14
-52
lines changed

4 files changed

+14
-52
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jobs:
1010
cloud:
1111
strategy:
1212
matrix:
13-
stack: [blueprint-golang]
13+
stack:
14+
- blueprint-golang
1415

1516
runs-on: ubuntu-latest
1617
steps:

.github/workflows/carry.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ jobs:
77
it:
88
strategy:
99
matrix:
10-
stack: [blueprint-golang]
10+
stack:
11+
- blueprint-golang
1112

1213
runs-on: ubuntu-latest
1314
steps:

.github/workflows/check-clean.yml

Lines changed: 10 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -11,60 +11,22 @@ jobs:
1111
it:
1212
strategy:
1313
matrix:
14-
stack: [blueprint-golang]
14+
stack:
15+
- blueprint-golang
1516

1617
runs-on: ubuntu-latest
1718
steps:
1819

1920
- uses: actions/checkout@v2
2021

21-
- uses: peter-evans/create-issue-from-file@v4
22-
id: clean-sandbox
23-
with:
24-
title: Clean up sandbox pr${{ github.event.number }} of `${{ matrix.stack }}`
25-
content-filepath: ./.github/issue-clean-sandbox.md
26-
27-
- uses: peter-evans/create-or-update-comment@v2
28-
with:
29-
issue-number: ${{ steps.clean-sandbox.outputs.issue-number }}
30-
body: |
31-
Destroying environment of #${{ github.event.number }}
32-
33-
- uses: peter-evans/create-or-update-comment@v2
34-
with:
35-
issue-number: ${{ github.event.number }}
36-
body: |
37-
destroying with #${{ steps.clean-sandbox.outputs.issue-number }}
38-
39-
- uses: actions/setup-go@v2
22+
- uses: fogfish/spawner-cdk@main
4023
with:
4124
go-version: 1.18
42-
43-
##
44-
## fetch deps
45-
- name: go get tools
46-
run: |
47-
npm install -g aws-cdk
48-
49-
##
50-
## destroy application from aws
51-
- name: aws access
52-
uses: aws-actions/configure-aws-credentials@v1
53-
with:
54-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
55-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
25+
command: destroy
26+
stack: ${{ matrix.stack }}
27+
version: pr${{ github.event.number }}
28+
issue-to-comment: ${{ github.event.number }}
29+
issue-to-create: ./.github/issue-clean-sandbox.md
30+
aws-access-key: ${{ secrets.AWS_ACCESS_KEY }}
31+
aws-secret-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
5632
aws-region: eu-west-1
57-
58-
- name: cdk destroy
59-
run: |
60-
cdk destroy -f ${{ matrix.stack }}-pr${{ github.event.number }} \
61-
-c vsn=pr${{ github.event.number }}
62-
env:
63-
GOPATH: /home/runner/work/${{ github.event.repository.name }}/go
64-
65-
66-
- uses: peter-evans/close-issue@v2
67-
with:
68-
issue-number: ${{ steps.clean-sandbox.outputs.issue-number }}
69-
comment: |
70-
Sandbox #${{ github.event.number }} of **${{ matrix.stack }}** is destroyed.

.github/workflows/check-spawn.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,9 @@ jobs:
2323
- uses: fogfish/spawner-cdk@main
2424
with:
2525
go-version: 1.18
26-
command: destroy
2726
stack: ${{ matrix.stack }}
2827
version: pr${{ github.event.number }}
2928
issue-to-comment: ${{ github.event.number }}
30-
issue-to-create: ./.github/issue-spawn-latest.md
3129
aws-access-key: ${{ secrets.AWS_ACCESS_KEY }}
3230
aws-secret-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
3331
aws-region: eu-west-1

0 commit comments

Comments
 (0)