Skip to content

Commit f1ba921

Browse files
committed
ci(gitlab-ci): create 'codestyle' job for GitLab CI/CD and local usage
Signed-off-by: Adrian DC <radian.dc@gmail.com>
1 parent 06f62a2 commit f1ba921

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.gitlab-ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
image: python:3.13
22

33
stages:
4+
- prepare
45
- build
56
- deploy
67
- promote
78

9+
lint:
10+
stage: prepare
11+
script:
12+
# Configurations
13+
- set +x
14+
# Run lint workflows
15+
- |
16+
grep 'run: ' ./.github/workflows/lint.yml | sed 's/.* run: //g' | while read -r command; do
17+
echo ' '
18+
echo "- ${command}"
19+
echo ' '
20+
sh -c "${command}" || exit 1
21+
done
22+
823
build-images:
924
stage: build
1025
image:
@@ -27,7 +42,7 @@ build-images:
2742

2843
deploy-images:
2944
stage: deploy
30-
image:
45+
image:
3146
name: mplatform/manifest-tool:alpine-v2.0.4@sha256:38b399ff66f9df247af59facceb7b60e2cd01c2d649aae318da7587efb4bbf87
3247
entrypoint: [""]
3348
script:

0 commit comments

Comments
 (0)