Skip to content

Commit b3e3d53

Browse files
Nho LuongNho Luong
Nho Luong
authored and
Nho Luong
committed
Init my devops-basics source code
0 parents  commit b3e3d53

File tree

298 files changed

+128275
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

298 files changed

+128275
-0
lines changed

Diff for: .all-contributorsrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"files": [
3+
"README.md"
4+
],
5+
"imageSize": 100,
6+
"commit": false,
7+
"commitType": "docs",
8+
"commitConvention": "angular",
9+
"contributors": [
10+
{
11+
"login": "nholuong",
12+
"name": "Nho Luong",
13+
"avatar_url": "https://ko-fi.com/nholuong",
14+
"profile": "https://www.linkedin.com/in/nholuong/",
15+
"contributions": [
16+
"code",
17+
"business"
18+
]
19+
},
20+
],
21+
"contributorsPerLine": 7,
22+
"skipCi": true,
23+
"repoType": "github",
24+
"repoHost": "https://github.com/nholuongut/devops-basics",
25+
"projectName": "devops-basics",
26+
"projectOwner": "nholuong"
27+
}

Diff for: .github/FUNDING.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# These are supported funding model platforms
2+
3+
github: nholuong # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
12+
polar: # Replace with a single Polar username
13+
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username
14+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

Diff for: .github/dependabot.yml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
8+
- directory: "/topics/terraform/basic/aws-ec2"
9+
package-ecosystem: "terraform"
10+
schedule:
11+
interval: "weekly"
12+
- directory: "/topics/terraform/advanced/aws-three-tier"
13+
package-ecosystem: "terraform"
14+
schedule:
15+
interval: "weekly"

Diff for: .github/pull_request_template.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
2+
v ✰ Thanks for creating a PR! ✰
3+
v If your PR doesn't close an issue, that's OK! Just remove the Closes: #XXX line!
4+
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->
5+
6+
Closes: #XXX
7+
> *Be noted that XXX is the issue ID*
8+
9+
## What is the purpose of the change
10+
11+
> Add a description of the overall background and high level changes that this PR introduces
12+
13+
*(E.g.: This pull request improves documentation of area A by adding ....)*

Diff for: .github/workflows/greeting.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Greetings
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
issues:
8+
types:
9+
- opened
10+
11+
jobs:
12+
greeting:
13+
runs-on: ubuntu-latest
14+
if: ${{ github.actor != 'all-contributors[bot]' && github.event.pull_request.user.login != 'nholuong' }}
15+
permissions:
16+
issues: write
17+
pull-requests: write
18+
steps:
19+
- uses: actions/first-interaction@v1
20+
with:
21+
repo-token: ${{ secrets.GITHUB_TOKEN }}
22+
issue-message: "Hi, thanks for your contribution!🎉 Great first issue!"
23+
pr-message: "Hi, thanks for your contribution!🎉 Great first PR!"

Diff for: .github/workflows/link-checker.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Links Checker
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: "0 0 1,15 * *" # twice a month
7+
8+
jobs:
9+
linkChecker:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Link Checker
15+
id: lychee
16+
uses: lycheeverse/[email protected]
17+
with:
18+
args: --accept '100..=103,200..=299,403,429' --exclude-all-private .
19+
20+
- name: Create Issue From File
21+
if: env.lychee_exit_code != 0
22+
uses: peter-evans/create-issue-from-file@v5
23+
with:
24+
title: Broken Link Detected (Help Wanted)
25+
content-filepath: ./lychee/out.md
26+
labels: report, automated issue, good first issue

Diff for: .github/workflows/main.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Generate Readme (WIP)
2+
on:
3+
schedule:
4+
- cron: '0 0 * * *'
5+
6+
jobs:
7+
list_folders_job:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v4
12+
13+
- name: Run generate-main-readme.sh (WIP)
14+
run: |
15+
cd tools
16+
ls -la
17+
chmod +x generate-main-readme.sh
18+
./generate-main-readme.sh
19+

Diff for: .github/workflows/run-excercise.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Check Excercise Answers
2+
3+
on:
4+
pull_request:
5+
branches: ['main']
6+
paths:
7+
- 'topics/shell/excercise/answers/*.sh'
8+
9+
jobs:
10+
run-scripts:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Find and run shell scripts
18+
run: |
19+
for file in topics/shell/excercise/answers/*.sh; do
20+
if [ -f "$file" ]; then
21+
echo "Running $file..."
22+
chmod +x "$file"
23+
bash "$file"
24+
echo "Completed $file."
25+
fi
26+
done

Diff for: .github/workflows/run-shell.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: shell-script
2+
3+
on:
4+
pull_request:
5+
branches: ['main']
6+
paths:
7+
- 'topics/shell/'
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- run: ls
15+
- run: echo "Running basic.sh script"
16+
- run: cd topics/shell/basic; bash ./basic.sh

Diff for: .github/workflows/shell-check.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: ShellCheck
2+
3+
on:
4+
workflow_dispatch:
5+
## Temporary disable run on main (avoid spamming notifications), only run on user trigger, to fix all existing issues first before adding to CI
6+
# pull_request:
7+
# branches: ["main"]
8+
9+
jobs:
10+
shellcheck:
11+
name: ShellCheck
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Run ShellCheck
16+
uses: ludeeus/action-shellcheck@master
17+

Diff for: .github/workflows/stale-issue.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Close inactive issues and prs
2+
on:
3+
schedule:
4+
- cron: "30 1 * * *"
5+
workflow_dispatch:
6+
7+
jobs:
8+
close-issues:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
pull-requests: write
13+
steps:
14+
- uses: actions/stale@v9
15+
with:
16+
# Issues
17+
days-before-issue-stale: 90
18+
days-before-issue-close: 60
19+
stale-issue-label: "stale"
20+
stale-issue-message: "This issue is stale because it has been open for 90 days with no activity."
21+
close-issue-message: "This issue was closed because it has been inactive for 60 days since being marked as stale."
22+
# PR
23+
days-before-pr-stale: 90
24+
days-before-pr-close: 60
25+
stale-pr-label: "stale"
26+
stale-pr-message: "This PR is stale because it has been open for 90 days with no activity."
27+
close-pr-message: "This PR was closed because it has been inactive for 60 days since being marked as stale."
28+
repo-token: ${{ secrets.GITHUB_TOKEN }}

Diff for: .gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
nohup.out
2+
workspace

Diff for: CNAME

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
devops-basics.nholuong.org

Diff for: CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @nholuong

Diff for: CONTRIBUTING.md

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Contributing
2+
3+
The following information provides a set of guidelines for contributing to the nholuong/devops-basic chain main repo. Use your best judgment, and, if you see room for improvement, please propose changes to this document.
4+
5+
## First steps
6+
7+
The first step is to find an issue you want to fix. To identify issues we think are good for first-time contributors, we add the **good first issue** label.
8+
Once you find an existing issue that you want to work on or if you have a new issue to create, continue below.
9+
10+
## Proposing changes
11+
12+
To contribute a change proposal, use the following workflow:
13+
14+
1. [Fork the repository](https://github.com/nholuongut/devops-basics).
15+
2. If you find this repository helpful, kindly consider showing your appreciation by giving it a star ⭐ Thanks! 💖
16+
3. [Add an upstream](https://docs.github.com/en/github/collaborating-with-pull-requests/working-with-forks/syncing-a-fork) so that you can update your fork.
17+
4. Clone your fork to your computer.
18+
5. Create a branch and name it appropriately.
19+
6. Work on only one major change in one pull request.
20+
7. Make sure all tests are passing locally.
21+
8. Next, rinse and repeat the following:
22+
23+
1. Commit your changes. Write a simple, straightforward commit message. To learn more, see [How to Write a Git Commit Message](https://chris.beams.io/posts/git-commit/).
24+
2. Push your changes to your remote fork. To add your remote, you can copy/paste the following:
25+
26+
```sh
27+
28+
#Remove origin
29+
30+
git remote remove origin
31+
32+
#set a new remote
33+
34+
git remote add my_awesome_new_remote_repo [insert-link-found-in-source-subtab-of-your-repo]
35+
36+
#Verify new remote
37+
38+
git remote -v
39+
40+
> my_awesome_new_remote_repo [link-found-in-source-subtab-of-your-repo] (fetch)
41+
> my_awesome_new_remote_repo [link-found-in-source-subtab-of-your-repo] (push)
42+
43+
#Push changes to your remote repo
44+
45+
git push <your_remote_name>
46+
47+
#e.g. git push my_awesome_new_remote_repo
48+
```
49+
50+
3. Create a PR on the devops-basic repository. There should be a PR template to help you do so.
51+
4. Wait for your changes to be reviewed. If you are a maintainer, you can assign your PR to one or more reviewers. If you aren't a maintainer, one of the maintainers will assign a reviewer.
52+
5. After you receive feedback from a reviewer, make the requested changes, commit them to your branch, and push them to your remote fork again.
53+
6. Once approval is given, feel free to squash & merge!

Diff for: Donate.png

334 KB
Loading

0 commit comments

Comments
 (0)