Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daknhh committed Oct 13, 2023
1 parent aae9c78 commit db04518
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 12 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/test_ipSets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,33 @@ on:

jobs:
deploy_production_main:
name: Test and deploy Firewalls
name: Test and deploy IpSet Firewall
runs-on: ubuntu-latest
steps:
- name: 📦 Install Taskfile
run: |
npm install -g @go-task/cli
# Install node.js since we need npm to install cdk
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.x'
# Cache node modules for subsequent runs to reduce build times
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
# Install cdk and typescript globally
- name: Install CDK and typescript globally
run: |
npm i -g aws-cdk typescript ts-node @types/node
npm link typescript
- name: 📦 Install Packages
run: |
ls
cd ..
ls
npm install
- name: ⬇️ Checkout
uses: actions/checkout@v3
Expand All @@ -48,6 +64,8 @@ jobs:
mask-aws-account-id: false
- name: ✚ Deploy Firewall to AWS
run: |
export CDK_DEFAULT_ACCOUNT=${{ env.ACCOUNT_ID }}
export CDK_DEFAULT_REGION=${{ env.AWS_REGION }}
task deploy config=ipSetsTests
- name: 🗑️ Remove Firewall from AWS
run: |
Expand Down
26 changes: 22 additions & 4 deletions .github/workflows/test_onlymanagedrulegroups.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,33 @@ on:

jobs:
deploy_production_main:
name: Test and deploy Firewalls
name: Test and deploy OnlyManagedRuleGroups Firewall
runs-on: ubuntu-latest
steps:
- name: 📦 Install Taskfile
run: |
npm install -g @go-task/cli
# Install node.js since we need npm to install cdk
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.x'
# Cache node modules for subsequent runs to reduce build times
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
# Install cdk and typescript globally
- name: Install CDK and typescript globally
run: |
npm i -g aws-cdk typescript ts-node @types/node
npm link typescript
- name: 📦 Install Packages
run: |
ls
cd ..
ls
npm install
- name: ⬇️ Checkout
uses: actions/checkout@v3
Expand All @@ -48,6 +64,8 @@ jobs:
mask-aws-account-id: false
- name: ✚ Deploy Firewall to AWS
run: |
export CDK_DEFAULT_ACCOUNT=${{ env.ACCOUNT_ID }}
export CDK_DEFAULT_REGION=${{ env.AWS_REGION }}
task deploy config=onlyManagedRuleGroupsTests
- name: 🗑️ Remove Firewall from AWS
run: |
Expand Down
28 changes: 24 additions & 4 deletions .github/workflows/test_regexPatternSets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,33 @@ on:

jobs:
deploy_production_main:
name: Test and deploy Firewalls
name: Test and deploy RegexPatternSets Firewall
runs-on: ubuntu-latest
steps:
- name: 📦 Install Taskfile
run: |
npm install -g @go-task/cli
# Install node.js since we need npm to install cdk
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '18.x'
# Cache node modules for subsequent runs to reduce build times
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
# Install cdk and typescript globally
- name: Install CDK and typescript globally
run: |
npm i -g aws-cdk typescript ts-node @types/node
npm link typescript
- name: 📦 Install Packages
run: |
ls
cd ..
ls
npm install
- name: ⬇️ Checkout
uses: actions/checkout@v3
Expand All @@ -48,7 +64,11 @@ jobs:
mask-aws-account-id: false
- name: ✚ Deploy Firewall to AWS
run: |
export CDK_DEFAULT_ACCOUNT=${{ env.ACCOUNT_ID }}
export CDK_DEFAULT_REGION=${{ env.AWS_REGION }}
task deploy config=regexPatternSetsTests
- name: 🗑️ Remove Firewall from AWS
run: |
export CDK_DEFAULT_ACCOUNT=${{ env.ACCOUNT_ID }}
export CDK_DEFAULT_REGION=${{ env.AWS_REGION }}
task destroy config=regexPatternSetsTests

0 comments on commit db04518

Please sign in to comment.