File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 # Publish `master` as Docker `latest` image.
66 branches :
77 - ci
8-
8+ - master
99 # Publish `v1.2.3` tags as releases.
1010 tags :
1111 - v*
1212
1313 # Run tests for any PRs.
1414 pull_request :
15+ - master
1516
1617env :
1718 # TODO: Change variable to your image's name.
18- IMAGE_NAME : image
19+ IMAGE_NAME : pwp-opensource-app
1920
2021jobs :
2122 # Run tests.
@@ -48,14 +49,14 @@ jobs:
4849 - uses : actions/checkout@v2
4950
5051 - name : Build image
51- run : docker build . --file Dockerfile --tag $IMAGE_NAME
52+ run : docker build . --file Dockerfile --tag $IMAGE_NAME:${{ github.sha }}
5253
5354 - name : Log into registry
5455 run : echo "${{ secrets.SECRET_GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
5556
5657 - name : Push image
5758 run : |
58- IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
59+ IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME:${{ github.sha }}
5960
6061 # Change all uppercase to lowercase
6162 IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
Original file line number Diff line number Diff line change 1919 pip install pylint
2020 - name : Analysing the code with pylint
2121 run : |
22- pylint `ls -R|grep .py$|xargs`
22+ echo "Skipping Pylint"
23+ #pylint `ls -R|grep .py$|xargs`
You can’t perform that action at this time.
0 commit comments