Skip to content

Commit 8a5d8c6

Browse files
committed
Add checksum GitHub action
1 parent 7ea8087 commit 8a5d8c6

File tree

3 files changed

+600
-0
lines changed

3 files changed

+600
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Generate SHA256 Checksum
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'AWS/EC2/ec2-install.sh' # Trigger only when the install.sh file in the AWS/EC2 directory is changed
7+
types:
8+
- opened
9+
- synchronize
10+
- reopened
11+
12+
jobs:
13+
generate-checksum:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Generate SHA256 checksum for install.sh in AWS/EC2 directory
21+
run: |
22+
# Generate SHA256 checksum for the install.sh script located in AWS/EC2
23+
sha256sum AWS/EC2/ec2-install.sh > AWS/EC2/ec2-install.sh.sha256
24+
25+
- name: Commit SHA256 file to AWS/EC2 directory
26+
run: |
27+
# Set up Git config
28+
git config --global user.name 'github-actions'
29+
git config --global user.email 'github-actions@github.com'
30+
31+
# Add the generated checksum file in the AWS/EC2 directory
32+
git add AWS/EC2/ec2-install.sh.sha256
33+
git commit -m "Add SHA256 checksum for ec2-install.sh in AWS/EC2 directory"
34+
git push

AWS/EC2/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# EC2 Installation Quickstart
2+
3+
* A Develocity license
4+
* An active **AWS account**
5+
* Basic familiarity with AWS EC2
6+
7+
## Getting Started
8+
9+
HERE THE LINK TO THE DOC
10+
11+
```shell
12+
ec2-install.sh --license $PATH/TO/LICENSE --hostname $AWS-HOSTNAME
13+
```

0 commit comments

Comments
 (0)