File tree Expand file tree Collapse file tree 2 files changed +34
-12
lines changed
Expand file tree Collapse file tree 2 files changed +34
-12
lines changed Original file line number Diff line number Diff line change 1+ name : Docker
2+
3+ on :
4+ push :
5+
6+ env :
7+ image_name : descope/py-example
8+
9+ permissions :
10+ contents : read
11+ packages : write
12+
13+ jobs :
14+ pkg :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v3
19+
20+ - name : Docker Login
21+ uses : descope/.github/.github/actions/docker/login@main
22+ with :
23+ ghcr_token : ${{ secrets.GITHUB_TOKEN }}
24+
25+ - name : Docker Build
26+ uses : descope/.github/.github/actions/docker/build@main
27+ with :
28+ push : true
29+ image-name : |
30+ ghcr.io/${{ env.image_name }}
Original file line number Diff line number Diff line change @@ -3,6 +3,10 @@ name: Python
33on :
44 pull_request :
55
6+ permissions :
7+ contents : read
8+ pull-requests : write
9+
610jobs :
711 build :
812 runs-on : ubuntu-latest
3943 echo "Coverage Tests - ${{ steps.coverageComment.outputs.tests }}"
4044 echo "Coverage Time - ${{ steps.coverageComment.outputs.time }}"
4145 echo "Not Success Test Info - ${{ steps.coverageComment.outputs.notSuccessTestInfo }}"
42-
43- pkg :
44- runs-on : ubuntu-latest
45- needs : build
46- steps :
47- - name : Checkout
48- uses : actions/checkout@v3
49- - name : Docker build and push
50- uses : descope/.github/.github/actions/docker/build@main
51- with :
52- push : true
53- token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments