Skip to content

Commit 00b96f0

Browse files
authored
fix: updating github action (#60)
* fix: updating github action * fix: py-example image name
1 parent 57c82a2 commit 00b96f0

File tree

2 files changed

+34
-12
lines changed

2 files changed

+34
-12
lines changed

.github/workflows/docker.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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 }}

.github/workflows/python-pr.yaml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Python
33
on:
44
pull_request:
55

6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
610
jobs:
711
build:
812
runs-on: ubuntu-latest
@@ -39,15 +43,3 @@ jobs:
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 }}

0 commit comments

Comments
 (0)