Skip to content

Commit bd3177d

Browse files
Separate Workflows
1 parent 0b8cd5a commit bd3177d

File tree

2 files changed

+17
-127
lines changed

2 files changed

+17
-127
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
branches: [ "main" ]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v3
14+
15+
- name: Build the Docker image
16+
run: cd .devcontainer && docker build . --file Dockerfile --tag aws-terraform-dev-container:${{ github.run_id }}

.github/workflows/test.yml

Lines changed: 1 addition & 127 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker Image CI
1+
name: Test Make targets
22

33
on:
44
push:
@@ -13,131 +13,5 @@ jobs:
1313
- name: Checkout
1414
uses: actions/checkout@v3
1515

16-
- name: Build the Docker image
17-
run: cd .devcontainer && docker build . --file Dockerfile --tag aws-terraform-dev-container:${{ github.run_id }}
18-
19-
run:
20-
runs-on: aws-terraform-dev-container:${{ github.run_id }}
21-
steps:
2216
- name: Display AWS CLI version
2317
run: make aws/cli-version
24-
25-
# - name: Run Checkov
26-
# run: make checkov/run
27-
28-
# - name: Display checkov version
29-
# run: make checkov/version
30-
31-
# - name: Build README.md based on doc/README.yaml (and/or doc/.terraform-docs.yml)
32-
# run: make doc/build
33-
34-
# - name: Initialize project's documentation
35-
# run: make doc/init
36-
37-
# - name: Create a .gitignore file with most common rules
38-
# run: make gitignore/init
39-
40-
# - name: Install Golang
41-
# run: make go/install
42-
43-
# - name: Display Gomplate version
44-
# run: make gomplate/version
45-
46-
# - name: Display Go version
47-
# run: make go/version
48-
49-
# - name: Help screen
50-
# run: make help/clean
51-
52-
# - name: Initialize project with default configuration
53-
# run: make init
54-
55-
# - name: Install pre-commit hooks
56-
# run: make pre-commit/install-hooks
57-
58-
# - name: Install pre-commit using Pip3
59-
# run: make pre-commit/install
60-
61-
# - name: Execute pre-commit hooks on all files
62-
# run: make pre-commit/run
63-
64-
# - name: Update pre-commit-config.yml with the latest version
65-
# run: make pre-commit/update
66-
67-
# - name: Display pre-commit version
68-
# run: make pre-commit/version
69-
70-
# - name: Install Python 3
71-
# run: make python/install
72-
73-
# - name: Install Python 3 Pip
74-
# run: make python/pip-install
75-
76-
# - name: Display Python & Pip version
77-
# run: make python/version
78-
79-
# - name: Create a Python 3 virtualenv in the current directory
80-
# run: make python/virtualenv-create
81-
82-
# - name: Install Python 3 virtualenv
83-
# run: make python/virtualenv
84-
85-
# - name: Builds or changes infrastructure according to Terraform configuration files in DIR
86-
# run: make terraform/apply
87-
88-
# - name: Remove temporary files and directories
89-
# run: make terraform/clean
90-
91-
# - name: Destroy Terraform-managed infrastructure.
92-
# run: make terraform/destroy
93-
94-
# - name: Build doc/terraform-docs.md with Terraform Docs
95-
# run: make terraform-docs/build
96-
97-
# - name: Create initl configuration
98-
# run: make terraform-docs/init
99-
100-
# - name: Display Terraform Docs version
101-
# run: make terraform-docs/version
102-
103-
# - name: Check if the input is formatted. Exit status will be 0 if all input is properly formatted and non-zero otherwise.
104-
# run: make terraform/fmt
105-
106-
# - name: Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
107-
# run: make terraform/init/backend
108-
109-
# - name: Initialize a new or existing Terraform working directory by creating initial files, loading any remote state, downloading modules, etc.
110-
# run: make terraform/init
111-
112-
# - name: Generates an execution plan for Terraform
113-
# run: make terraform/plan
114-
115-
# - name: Validate the configuration files in a directory, referring only to the configuration and not accessing any remote services such as remote state, provider APIs, etc.
116-
# run: make terraform/validate
117-
118-
# - name: Display Terraform version
119-
# run: make terraform/version
120-
121-
# - name: Run Terrascan
122-
# run: make terrascan/run
123-
124-
# - name: Display Terrascan version
125-
# run: make terrascan/version
126-
127-
# - name: Init AWS TFLINT
128-
# run: make tflint/init
129-
130-
# - name: Display TFLINT version
131-
# run: make tflint/version
132-
133-
# - name: Run TFSEC
134-
# run: make tfsec/run
135-
136-
# - name: Display TFSEC version
137-
# run: make tfsec/version
138-
139-
# - name: Execute tfswitch
140-
# run: make tfswitch/run
141-
142-
# - name: Display tfswitch version
143-
# run: make tfswitch/version

0 commit comments

Comments
 (0)