Skip to content
This repository was archived by the owner on Jun 20, 2024. It is now read-only.

Commit d063d8f

Browse files
committed
Add gha
1 parent 27d35eb commit d063d8f

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/cicd.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: "CI/CD"
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
lint:
9+
runs-on: "ubuntu-20.04"
10+
steps:
11+
- name: "Check out repository code"
12+
uses: "actions/checkout@v3"
13+
- name: "Linting"
14+
run: "make lint"
15+
build:
16+
runs-on: "ubuntu-20.04"
17+
needs:
18+
- "lint"
19+
steps:
20+
- name: "Check out repository code"
21+
uses: "actions/checkout@v3"
22+
- name: "Build for branches"
23+
run: "make tag=${{ github.ref_name }} build"
24+
- name: "Push the image to the repository"
25+
run: "make tag=${{ github.ref_name }} push"
26+
test:
27+
runs-on: "ubuntu-20.04"
28+
needs:
29+
- "build"
30+
steps:
31+
- name: "Check out repository code"
32+
uses: "actions/checkout@v3"
33+
- name: "Pull the image"
34+
run: "make tag=${{ github.ref_name }} pull"
35+
- name: "Run tests"
36+
run: "make test"
37+
deploy:
38+
runs-on: "ubuntu-20.04"
39+
needs:
40+
- "test"
41+
steps:
42+
- name: "Check out repository code"
43+
uses: "actions/checkout@v3"
44+
- name: "Pull the image"
45+
run: "make tag=${{ github.ref_name }} deploy"

0 commit comments

Comments
 (0)