Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
f1dd959
feat: implement lab01 devops info service
3llimi Jan 28, 2026
b7c9be5
feat: implement lab01 bonus in go
3llimi Jan 28, 2026
d49deeb
Fixes
3llimi Jan 28, 2026
f13b7c0
Minor Fixes and additions
3llimi Jan 28, 2026
ea78847
Minor Documentation Adjustments
3llimi Jan 28, 2026
f7df90d
Merge pull request #2 from 3llimi/lab01
3llimi Feb 1, 2026
60ba91f
Lab Submission
3llimi Feb 4, 2026
1425b89
Lab02 Bonus Task
3llimi Feb 4, 2026
17a8604
Merge pull request #3 from 3llimi/lab02
3llimi Feb 7, 2026
38ce242
feat(ci): add GitHub Actions workflow with tests and Docker build
3llimi Feb 10, 2026
7d2131b
Minor Fix
3llimi Feb 10, 2026
8e188c0
Type
3llimi Feb 10, 2026
86298df
Merge branch 'inno-devops-labs:master' into master
3llimi Feb 11, 2026
e27bb34
Merge branch 'inno-devops-labs:master' into lab03
3llimi Feb 11, 2026
6486138
typo fix
3llimi Feb 11, 2026
9f45886
Merge branch 'lab03' of https://github.com/3llimi/DevOps-Core-Course …
3llimi Feb 11, 2026
54748d1
Typos
3llimi Feb 11, 2026
14679f4
fix(ci): use Snyk CLI instead
3llimi Feb 11, 2026
430b10e
Security vulnerability fix
3llimi Feb 11, 2026
3410a21
Revert "Security vulnerability fix"
3llimi Feb 11, 2026
c30868b
Bonus Task
3llimi Feb 11, 2026
89e5033
Version Issue
3llimi Feb 11, 2026
bf44f49
Documentation
3llimi Feb 11, 2026
dcf12c1
Fix the golang tests
3llimi Feb 11, 2026
7043888
Bonus Task documentation
3llimi Feb 11, 2026
cb5e8b3
coverall parallel fix
3llimi Feb 12, 2026
b9b5dff
Revert "coverall parallel fix"
3llimi Feb 12, 2026
4494b42
Added more tests and fixed the documentation
3llimi Feb 12, 2026
544ad24
Merge pull request #4 from 3llimi/lab03
3llimi Feb 12, 2026
951ae36
Lab04 + Bonus Task
3llimi Feb 19, 2026
1f56b01
terraform fix
3llimi Feb 19, 2026
fb6f21d
fix(terraform): add required_version and variable types for tflint
3llimi Feb 19, 2026
f604506
Merge pull request #5 from 3llimi/lab04
3llimi Feb 20, 2026
77a1a12
feat: complete lab05 - ansible fundamentals
3llimi Feb 21, 2026
45d7e84
Bonus Task Implementation
3llimi Feb 21, 2026
03b08a4
Merge branch 'inno-devops-labs:master' into master
3llimi Feb 21, 2026
7b16f7a
Merge branch 'inno-devops-labs:master' into lab05
3llimi Feb 21, 2026
c9e446e
Merge pull request #6 from 3llimi/lab05
3llimi Feb 21, 2026
5b49937
Lab 6: blocks, tags, Docker Compose, wipe logic, CI/CD
3llimi Feb 22, 2026
b238866
branch fix
3llimi Feb 22, 2026
f61f970
fix lint issues
3llimi Feb 22, 2026
8cf3b86
add license to meta files
3llimi Feb 22, 2026
4255d96
fix all ansible-lint violations in web_app role
3llimi Feb 22, 2026
4ace573
bonus multi-app deployment and CI/CD workflows
3llimi Feb 22, 2026
f058211
fix branch in the workflow
3llimi Feb 22, 2026
0382cfa
fix main workflow to use deploy_python.yml
3llimi Feb 22, 2026
5de2abd
Lab06: Submission
3llimi Feb 22, 2026
ba27750
Add Screenshots
3llimi Feb 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/ansible-deploy-bonus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: "Ansible - Deploy Go App"

on:
push:
branches: [main, master, lab06]
paths:
- 'ansible/vars/app_bonus.yml'
- 'ansible/playbooks/deploy_bonus.yml'
- 'ansible/roles/web_app/**'
- '.github/workflows/ansible-deploy-bonus.yml'
pull_request:
branches: [main, master]
paths:
- 'ansible/vars/app_bonus.yml'
- 'ansible/playbooks/deploy_bonus.yml'
- 'ansible/roles/web_app/**'

jobs:
lint:
name: "Ansible Lint - Bonus"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install ansible and ansible-lint
run: pip install ansible ansible-lint

- name: Run ansible-lint
run: |
cd ansible
ansible-lint playbooks/deploy_bonus.yml

deploy:
name: "Deploy Bonus App"
needs: lint
runs-on: self-hosted
steps:
- uses: actions/checkout@v4

- name: Run deploy playbook
run: |
cd ansible
ansible-playbook playbooks/deploy_bonus.yml

- name: Verify bonus app health
run: |
sleep 5
curl -f http://localhost:8001/health
53 changes: 53 additions & 0 deletions .github/workflows/ansible-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
---
name: "Ansible - Deploy Python App"

on:
push:
branches: [main, master, lab06]
paths:
- 'ansible/vars/app_python.yml'
- 'ansible/playbooks/deploy_python.yml'
- 'ansible/roles/web_app/**'
- '.github/workflows/ansible-deploy.yml'
pull_request:
branches: [main, master]
paths:
- 'ansible/vars/app_python.yml'
- 'ansible/playbooks/deploy_python.yml'
- 'ansible/roles/web_app/**'

jobs:
lint:
name: "Ansible Lint"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Install ansible and ansible-lint
run: pip install ansible ansible-lint

- name: Run ansible-lint
run: |
cd ansible
ansible-lint playbooks/deploy_python.yml

deploy:
name: "Deploy Python App"
needs: lint
runs-on: self-hosted
steps:
- uses: actions/checkout@v4

- name: Run deploy playbook
run: |
cd ansible
ansible-playbook playbooks/deploy_python.yml

- name: Verify python app health
run: |
sleep 5
curl -f http://localhost:8000/health
101 changes: 101 additions & 0 deletions .github/workflows/go-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Go CI

on:
push:
branches: [ master, lab03 ]
paths:
- 'app_go/**'
- '.github/workflows/go-ci.yml'
pull_request:
branches: [ master ]
paths:
- 'app_go/**'

jobs:
test:
name: Test Go Application
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.23'
cache-dependency-path: app_go/go.sum

- name: Install dependencies
working-directory: ./app_go
run: go mod download

- name: Run gofmt
working-directory: ./app_go
run: |
gofmt -l .
test -z "$(gofmt -l .)"

- name: Run go vet
working-directory: ./app_go
run: go vet ./...

- name: Run tests with coverage
working-directory: ./app_go
run: go test -v -race -coverprofile=coverage.out -covermode=atomic ./...

- name: Display coverage summary
working-directory: ./app_go
run: go tool cover -func=coverage.out

- name: Convert coverage to lcov format
working-directory: ./app_go
run: |
go install github.com/jandelgado/gcov2lcov@latest
gcov2lcov -infile=coverage.out -outfile=coverage.lcov

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./app_go/coverage.lcov
flag-name: go
parallel: false

docker:
name: Build and Push Docker Image
runs-on: ubuntu-latest
needs: test
if: github.event_name == 'push'

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/devops-info-service-go
tags: |
type=raw,value=latest
type=sha,prefix={{date 'YYYY.MM.DD'}}-

- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./app_go
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
126 changes: 126 additions & 0 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
name: Python CI

on:
push:
branches: [ master, lab03 ]
paths:
- 'app_python/**'
- '.github/workflows/python-ci.yml'
pull_request:
branches: [ master ]
paths:
- 'app_python/**'

jobs:
test:
name: Test Python Application
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.14'
cache: 'pip'
cache-dependency-path: 'app_python/requirements-dev.txt'

- name: Install dependencies
working-directory: ./app_python
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt

- name: Lint with ruff
working-directory: ./app_python
run: |
pip install ruff
ruff check . --output-format=github || true

- name: Run tests with coverage
working-directory: ./app_python
run: |
pytest -v --cov=. --cov-report=term --cov-report=lcov

- name: Upload coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./app_python/coverage.lcov
flag-name: python
parallel: false

docker:
name: Build and Push Docker Image
runs-on: ubuntu-latest
needs: test

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_USERNAME }}/devops-info-service
tags: |
type=raw,value=latest
type=sha,prefix={{date 'YYYY.MM.DD'}}-

- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./app_python
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max

security:
name: Security Scan with Snyk
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.14'

- name: Install dependencies
working-directory: ./app_python
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Install Snyk CLI
run: |
curl --compressed https://static.snyk.io/cli/latest/snyk-linux -o snyk
chmod +x ./snyk
sudo mv ./snyk /usr/local/bin/snyk

- name: Authenticate Snyk
run: snyk auth ${{ secrets.SNYK_TOKEN }}
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

- name: Run Snyk to check for vulnerabilities
working-directory: ./app_python
continue-on-error: true
run: |
snyk test --severity-threshold=high --file=requirements.txt
42 changes: 42 additions & 0 deletions .github/workflows/terrafom-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Terraform CI

on:
pull_request:
paths:
- 'terraform/**'
- '.github/workflows/terraform-ci.yml'

jobs:
validate:
name: Validate Terraform
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3
with:
terraform_version: 1.9.8

- name: Setup TFLint
uses: terraform-linters/setup-tflint@v4
with:
tflint_version: latest

- name: Terraform Format Check
run: terraform fmt -check
working-directory: terraform/

- name: Terraform Init
run: terraform init -backend=false
working-directory: terraform/

- name: Terraform Validate
run: terraform validate
working-directory: terraform/

- name: Run TFLint
run: tflint --format compact
working-directory: terraform/
4 changes: 4 additions & 0 deletions ansible/.ansible-lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
profile: basic
skip_list:
- var-naming # web_app role uses shared variables intentionally for reusability
3 changes: 3 additions & 0 deletions ansible/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.retry
.vault_pass
__pycache__/
Loading