-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,38 @@ | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:1-focal | ||
|
||
# Install AWS CLI | ||
RUN apt-get update && \ | ||
apt-get install -y unzip python3-pip && \ | ||
pip3 install --no-cache-dir --upgrade awscli && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Node.js and npm | ||
ENV NODE_VERSION=18.x | ||
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - && \ | ||
apt-get install -y nodejs | ||
|
||
# Install TypeScript | ||
RUN npm install -g typescript | ||
|
||
# Install Docker CLI | ||
COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/ | ||
|
||
# Install Terraform | ||
ENV TERRAFORM_VERSION=1.5.1 | ||
ENV TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache | ||
RUN mkdir -p $TF_PLUGIN_CACHE_DIR | ||
RUN SYSTEM_ARCH=$(dpkg --print-architecture) \ | ||
&& curl -OL https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_${SYSTEM_ARCH}.zip \ | ||
&& unzip terraform_${TERRAFORM_VERSION}_linux_${SYSTEM_ARCH}.zip \ | ||
&& mv terraform /usr/local/bin/ \ | ||
&& terraform version \ | ||
&& rm terraform_${TERRAFORM_VERSION}_linux_${SYSTEM_ARCH}.zip | ||
|
||
|
||
# Verify that everything was installed correctly | ||
RUN terraform --version \ | ||
&& aws --version \ | ||
&& node --version \ | ||
&& npm --version \ | ||
&& tsc --version \ | ||
&& docker --version | ||
FROM mcr.microsoft.com/vscode/devcontainers/base:1-focal | ||
|
||
# Install AWS CLI | ||
RUN apt-get update && \ | ||
apt-get install -y unzip python3-pip && \ | ||
pip3 install --no-cache-dir --upgrade awscli && \ | ||
apt-get clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Node.js and npm | ||
ENV NODE_VERSION=18.x | ||
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION} | bash - && \ | ||
apt-get install -y nodejs | ||
|
||
# Install TypeScript | ||
RUN npm install -g typescript | ||
|
||
# Install Docker CLI | ||
COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/ | ||
|
||
# Install Terraform | ||
ENV TERRAFORM_VERSION=1.5.1 | ||
ENV TF_PLUGIN_CACHE_DIR=$HOME/.terraform.d/plugin-cache | ||
RUN mkdir -p $TF_PLUGIN_CACHE_DIR | ||
RUN SYSTEM_ARCH=$(dpkg --print-architecture) \ | ||
&& curl -OL https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_${SYSTEM_ARCH}.zip \ | ||
&& unzip terraform_${TERRAFORM_VERSION}_linux_${SYSTEM_ARCH}.zip \ | ||
&& mv terraform /usr/local/bin/ \ | ||
&& terraform version \ | ||
&& rm terraform_${TERRAFORM_VERSION}_linux_${SYSTEM_ARCH}.zip | ||
|
||
# Verify that everything was installed correctly | ||
RUN terraform --version \ | ||
&& aws --version \ | ||
&& node --version \ | ||
&& npm --version \ | ||
&& tsc --version \ | ||
&& docker --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: semantic-check | ||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
permissions: | ||
contents: read | ||
pull-requests: read | ||
|
||
jobs: | ||
main: | ||
name: Semantic Commit Message Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- uses: amannn/action-semantic-pull-request@v5.2.0 | ||
name: Check PR for Semantic Commit Message | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
requireScope: false | ||
validateSingleCommit: true |