File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1-
21name : CI
32
43on :
54 push :
65 branches :
76 - main
8-
97
108jobs :
119 code_quality_checks :
@@ -17,27 +15,29 @@ jobs:
1715 name : Linting
1816 if : " true"
1917 with :
20- path : ./src
18+ path : ./src
2119 - uses : hadolint/hadolint-action@v1.5.0
2220 name : Docker Linting
2321 with :
2422 dockerfile : ./src/Dockerfile
2523 - name : MD Linting
26- uses : actionshub/markdownlint@main
24+ uses : actionshub/markdownlint@main
2725 - name : Stay woke
2826 uses : get-woke/woke-action@v0
2927 with :
3028 # Cause the check to fail on any broke rules
31- fail-on-error : true
29+ fail-on-error : true
3230
3331 Build_Push_Image :
3432 runs-on : ubuntu-latest
3533 needs : code_quality_checks
34+ permissions :
35+ packages : write
3636 steps :
3737 - name : Checkout
3838 uses : actions/checkout@v2
3939 - name : Login to DockerHub
40- uses : docker/login-action@v1
40+ uses : docker/login-action@v1
4141 with :
4242 registry : ghcr.io
4343 username : ${{ github.actor }}
5353 with :
5454 push : true
5555 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
5757 - name : Upload Image Tags
5858 uses : actions/upload-artifact@v2.2.2
5959 with :
6464 with :
6565 name : manifests
6666 path : ${{ github.workspace }}/manifests
67-
You can’t perform that action at this time.
0 commit comments