Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI/CD Pipeline
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run a one-line script
run: echo Hello, world! This is my first GitHub Action!
- name: Gather System Information
run: |
echo "--- Operating System ---"
uname -a
echo ""
echo "--- CPU Information ---"
lscpu
echo ""
echo "--- Memory Information ---"
free -h
Binary file added a.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added b.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added c.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added d.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added e.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions history.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Commit A
Commit B
Commit C
216 changes: 216 additions & 0 deletions submission2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,216 @@
# Lab Submission: Version Control

## Task 1: Understanding Git Objects

###

```fish
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> echo "This is the content of my first file." > sample_file.txt

ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git add sample_file.txt

ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git commit -m "Add sample_file.txt"

[lab1-complete db850ca] Add sample_file.txt
1 file changed, 1 insertion(+)
create mode 100644 sample_file.txt
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git log -1

commit db850ca5a9000a8abc0ec2e6079c2daf37b292c0 (HEAD -> lab1-complete)
Author: hvostcheduser <yogik_iz_gretsii@mail.ru>
Date: Thu Jun 12 22:02:22 2025 +0300

Add sample_file.txt
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git cat-file -p db850ca
tree f487458f8b211e2eb232c6dff9e9d1fdb8343979
parent 5f4a7d66c6c4bd166a915ae9576f83af0abab17e
author hvostcheduser <yogik_iz_gretsii@mail.ru> 1749754942 +0300
committer hvostcheduser <yogik_iz_gretsii@mail.ru> 1749754942 +0300
gpgsig -----BEGIN SSH SIGNATURE-----
U1NIU0lHAAAAAQAAAZcAAAAHc3NoLXJzYQAAAAMBAAEAAAGBALEPoQliCMbdiPoBbo+OI+
GwDfI+LPPKs8ETxT2kle7Az2pGH9wRC4Kfxw0+NbP8rI2kJa1PsY8T0+QKEr1JWM2x88hQ
y/g/PuM/fHnFF2DGn88YQEC2AN2Hg+4m9eMhgY6AwNeDUgZQq0k3I6zmzd7Uha5TfTqhJz
n5f5TpPHR7tKLmWoM5a3GLiVk5DW/EXXpxB/bd4B+m4L3s+MXyxobFOeORcjFgdmwjwOsF
b4Bx5hrZEoP7vXSkYHWWXwELaprok58bl+VfSV3CDrQGHZnTbdI49PJD04+w3ZXbbbShcy
H0J1zBm2qhBTV8d6GKYMGlPwufGIZMVVCvq+3Nc0/IwWHNVFbEsTXPTB7tFmdL5jEfXzw+
erHnosgixoyyZ5yDo/aHjTR25r1cd2qnslVdIGPXeCGCZV7mlEHWrOwIKCbsj2ASUAYAWA
OMgiHLr9ZjNBmY44qZp0QOf8P2ZWPUTehuhdLCTYwsG/1ICz4gk0MZ2CxycJcDkyptvd1o
KwAAAANnaXQAAAAAAAAABnNoYTUxMgAAAZQAAAAMcnNhLXNoYTItNTEyAAABgGE6gaHfz+
J7QD4Q4HiDSyWPtSCl/uezIjwhjVYBLEKqyiOMhU43whjOjXI+7YLTHQiVh7K/eRdlSKNz
SdhmpYiExxtHfWv36Do/3kj1b1v9UCaP0tpetRCOCP57x4+IuFLIr/hXTjkpYl/kHJp3zV
88bj9J/P486mXijSzbyTkDgbIbBPSHPHABrHJgbqenJhD664BPht3Mt4GUx/HLfU/l06Aw
nQDx4CFxCfHe80NV9rlYwldpJRePiAMkqnsw2kkirx2VHXJ4BMFKT9HZtYX6PujxlbcYjf
3wwffxfJlgvnswhezYmb3PXY7kanPGN/yzeb5WTVvq5ADT80A5Q4oiSZTM0swK7E/hGz5Z
yDXnOr96jNs5bkUMsx9Ecn+hWS/rzuWubTfOfj+dPnW4prOKaE4VymPPlgGid+x6qci9qa
NlSr+YAImqJXiL8slc0qOaKk7bsXKkgto4FsCyBKw14qFgfzP3LcYKjmwiiiTcwix4ESwy
1ILtlxMv9FIqdw==
-----END SSH SIGNATURE-----

Add sample_file.txt
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git cat-file -p f487458f8b211e2eb232c6dff9e9d1fdb8343979

100644 blob af7fda8ea32b60578a1103ce061a50d7f6f09a35 README.md
100644 blob 7a94f7af59b8968be392288ea03179a24ffc9d9e lab1.md
100644 blob 2f8463cc188ec6ca69ae7a0f98d38e132280becb lab2.md
100644 blob aababaf2aa910e866351989eb7b4981213c91814 sample_file.txt
100644 blob 1e42f316d822175c17245a9490123d1e9cab6add submission1.md
@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git cat-file -p aababaf2aa910e866351989eb7b4981213c91814
This is the content of my first file.
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> touch submission2.md


```


## Task 2: Git Reset Practice ### Initial State The `git-reset-practice` branch was created with three commits.

```fish
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git checkout -b git-reset-practice
Переключились на новую ветку «git-reset-practice»
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> echo "First commit" > file.txt
git add file.txt
git commit -m "First commit"

echo "Second commit" >> file.txt
git add file.txt
git commit -m "Second commit"

echo "Third commit" >> file.txt
git add file.txt
git commit -m "Third commit"
[git-reset-practice 005e28b] First commit
1 file changed, 1 insertion(+)
create mode 100644 file.txt
[git-reset-practice 987a9f6] Second commit
1 file changed, 1 insertion(+)
[git-reset-practice 45c43b2] Third commit
1 file changed, 1 insertion(+)
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git log --oneline
45c43b2 (HEAD -> git-reset-practice) Third commit
987a9f6 Second commit
005e28b First commit
db850ca (lab1-complete) Add sample_file.txt
5f4a7d6 (origin/lab1-complete) Task 2: Add summary of merge strategies
c3e8e15 Task 1: Add summary of signed commits benefits
0fea98c (origin/master, origin/HEAD, master) lab2 Git
a107866 lab1 Intro
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git reset --soft HEAD~1
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git log --oneline
git status
987a9f6 (HEAD -> git-reset-practice) Second commit
005e28b First commit
db850ca (lab1-complete) Add sample_file.txt
5f4a7d6 (origin/lab1-complete) Task 2: Add summary of merge strategies
c3e8e15 Task 1: Add summary of signed commits benefits
0fea98c (origin/master, origin/HEAD, master) lab2 Git
a107866 lab1 Intro
Текущая ветка: git-reset-practice
Изменения, которые будут включены в коммит:
(используйте «git restore --staged <файл>...», чтобы убрать из индекса)
изменено: file.txt

Неотслеживаемые файлы:
(используйте «git add <файл>...», чтобы добавить в то, что будет включено в коммит)
submission2.md

ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git commit -m "Third commit (re-committed)"
[git-reset-practice 2123526] Third commit (re-committed)
1 file changed, 1 insertion(+)
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git reset --hard HEAD~1
Указатель HEAD сейчас на коммите 987a9f6 Second commit
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git log --oneline
git status
987a9f6 (HEAD -> git-reset-practice) Second commit
005e28b First commit
db850ca (lab1-complete) Add sample_file.txt
5f4a7d6 (origin/lab1-complete) Task 2: Add summary of merge strategies
c3e8e15 Task 1: Add summary of signed commits benefits
0fea98c (origin/master, origin/HEAD, master) lab2 Git
a107866 lab1 Intro
Текущая ветка: git-reset-practice
Неотслеживаемые файлы:
(используйте «git add <файл>...», чтобы добавить в то, что будет включено в коммит)
submission2.md

индекс пуст, но есть неотслеживаемые файлы
(используйте «git add», чтобы проиндексировать их)
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git reflog
987a9f6 (HEAD -> git-reset-practice) HEAD@{0}: reset: moving to HEAD~1
2123526 HEAD@{1}: commit: Third commit (re-committed)
987a9f6 (HEAD -> git-reset-practice) HEAD@{2}: reset: moving to HEAD~1
45c43b2 HEAD@{3}: commit: Third commit
987a9f6 (HEAD -> git-reset-practice) HEAD@{4}: commit: Second commit
005e28b HEAD@{5}: commit: First commit
db850ca (lab1-complete) HEAD@{6}: checkout: moving from lab1-complete to git-reset-practice
db850ca (lab1-complete) HEAD@{7}: commit: Add sample_file.txt
5f4a7d6 (origin/lab1-complete) HEAD@{8}: commit: Task 2: Add summary of merge strategies
c3e8e15 HEAD@{9}: commit: Task 1: Add summary of signed commits benefits
0fea98c (origin/master, origin/HEAD, master) HEAD@{10}: reset: moving to HEAD~1
a3cdf61 HEAD@{11}: commit: Task 1: Add summary of signed commits benefits (with correct allowed_signers)
0fea98c (origin/master, origin/HEAD, master) HEAD@{12}: reset: moving to HEAD~1
87c323f HEAD@{13}: commit: benefits of signed commits section in my submission
0fea98c (origin/master, origin/HEAD, master) HEAD@{14}: reset: moving to HEAD~1
335a90f HEAD@{15}: commit: benefits of signed commits section in my submission
0fea98c (origin/master, origin/HEAD, master) HEAD@{16}: checkout: moving from master to lab1-complete
0fea98c (origin/master, origin/HEAD, master) HEAD@{17}: clone: from github.com:HvostchedUser/Sum25-intro-labs.git
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git reset --hard HEAD@{1}
Указатель HEAD сейчас на коммите 2123526 Third commit (re-committed)
ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
>

```

## Task 3: Visualizing Git History

### Commit Graph


```fish

ivan@hp-spectre-x360 /home/ivan/Projects/Sum25-intro-labs
> git log --oneline --graph --all
* eca38fc (HEAD -> master) Commit C
* 8c50b92 Commit B
* f5865f4 Commit A
| * 2123526 (git-reset-practice) Third commit (re-committed)
| * 987a9f6 Second commit
| * 005e28b First commit
| * db850ca (lab1-complete) Add sample_file.txt
| * 5f4a7d6 (origin/lab1-complete) Task 2: Add summary of merge strategies
| * c3e8e15 Task 1: Add summary of signed commits benefits
|/
* 0fea98c (origin/master, origin/HEAD) lab2 Git
* a107866 lab1 Intro


```

## Task 4: Tagging a Commit

* **Tag Name:** `v1.0.0`
* **Command Used:** `git tag v1.0.0` and `git push origin v1.0.0`
* **Associated Commit Hash:** `eca38fc62a3c4553480913a88f5830b8ebe6eae1`

**Value of Tagging:** Tagging is valuable for creating stable release points in a project's history. It allows developers to check out a specific version and triggers automated build and deployment pipelines.

## Bonus Task: GitHub Social Interactions

Social features like starring and following build community and make it easier to discover projects and good developers. Following team members helps keep track of their contributions and activity across different repositories.
90 changes: 90 additions & 0 deletions submission3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# CI/CD Lab - GitHub Actions

## Task 1: My Pipeline

### Key Concepts

* **Workflows:** Scripts that run automatically. You put them in `.github/workflows`.
* **Events:** What triggers a workflow, like a `push` or a manual click.
* **Jobs:** A set of steps that run on a server.
* **Runners:** The servers that run your jobs (like Ubuntu, Windows, etc.).
* **Steps:** The actual commands or actions inside a job.



1. Made the `.github/workflows` folders.
2. Created the `main.yml` file inside.
3. Wrote the basic workflow to run on a push to `main`.
4. Pushed the file to my repo. It didn't run at first because I was on a different branch, which makes sense.

No errors.



## Task 2: System Info and Manual Triggers

### Workflow Changes

I updated the `main.yml` file to do two new things:

1. Added `workflow_dispatch:` so I could start it manually with a button on the Actions page.
2. Added a new step to print out the runner's system details using commands like `uname` and `lscpu`.

### Gathered System Information

Here is the info I got from the runner when I ran the workflow manually.



```
--- Operating System ---
Linux pkrvmxyh4eaekms 6.11.0-1015-azure #15~24.04.1-Ubuntu SMP Thu May 1 02:52:08 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux

--- CPU Information ---
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Address sizes: 48 bits physical, 48 bits virtual
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Vendor ID: AuthenticAMD
Model name: AMD EPYC 7763 64-Core Processor
CPU family: 25
Model: 1
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
Stepping: 1
BogoMIPS: 4890.86
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl tsc_reliable nonstop_tsc cpuid extd_apicid aperfmperf tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy svm cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext vmmcall fsgsbase bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves user_shstk clzero xsaveerptr rdpru arat npt nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold v_vmsave_vmload umip vaes vpclmulqdq rdpid fsrm
Virtualization: AMD-V
Hypervisor vendor: Microsoft
Virtualization type: full
L1d cache: 64 KiB (2 instances)
L1i cache: 64 KiB (2 instances)
L2 cache: 1 MiB (2 instances)
L3 cache: 32 MiB (1 instance)
NUMA node(s): 1
NUMA node0 CPU(s): 0-3
Vulnerability Gather data sampling: Not affected
Vulnerability Itlb multihit: Not affected
Vulnerability L1tf: Not affected
Vulnerability Mds: Not affected
Vulnerability Meltdown: Not affected
Vulnerability Mmio stale data: Not affected
Vulnerability Reg file data sampling: Not affected
Vulnerability Retbleed: Not affected
Vulnerability Spec rstack overflow: Vulnerable: Safe RET, no microcode
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Retpolines; STIBP disabled; RSB filling; PBRSB-eIBRS Not affected; BHI Not affected
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Not affected

--- Memory Information ---
total used free shared buff/cache available
Mem: 15Gi 759Mi 14Gi 39Mi 1.0Gi 14Gi
Swap: 4.0Gi 0B 4.0Gi
```

---
Loading