File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1
-
2
1
name : CI
3
2
4
3
on :
5
4
push :
6
5
branches :
7
6
- main
8
-
9
7
10
8
jobs :
11
9
code_quality_checks :
@@ -17,27 +15,29 @@ jobs:
17
15
name : Linting
18
16
if : " true"
19
17
with :
20
- path : ./src
18
+ path : ./src
21
19
-
uses :
hadolint/[email protected]
22
20
name : Docker Linting
23
21
with :
24
22
dockerfile : ./src/Dockerfile
25
23
- name : MD Linting
26
- uses : actionshub/markdownlint@main
24
+ uses : actionshub/markdownlint@main
27
25
- name : Stay woke
28
26
uses : get-woke/woke-action@v0
29
27
with :
30
28
# Cause the check to fail on any broke rules
31
- fail-on-error : true
29
+ fail-on-error : true
32
30
33
31
Build_Push_Image :
34
32
runs-on : ubuntu-latest
35
33
needs : code_quality_checks
34
+ permissions :
35
+ packages : write
36
36
steps :
37
37
- name : Checkout
38
38
uses : actions/checkout@v2
39
39
- name : Login to DockerHub
40
- uses : docker/login-action@v1
40
+ uses : docker/login-action@v1
41
41
with :
42
42
registry : ghcr.io
43
43
username : ${{ github.actor }}
53
53
with :
54
54
push : true
55
55
context : ./src
56
- tags : ghcr.io/azure/gitops-connector:${{ env.IMAGE_TAG }}, ghcr.io/azure/gitops-connector:latest
56
+ tags : ghcr.io/azure/gitops-connector:${{ env.IMAGE_TAG }}, ghcr.io/azure/gitops-connector:latest
57
57
- name : Upload Image Tags
58
58
59
59
with :
64
64
with :
65
65
name : manifests
66
66
path : ${{ github.workspace }}/manifests
67
-
You can’t perform that action at this time.
0 commit comments