Skip to content

Commit

Permalink
check1
Browse files Browse the repository at this point in the history
  • Loading branch information
EliMoshkovich committed Mar 27, 2024
1 parent 324d8f2 commit 1bf15d4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/pdp_cicd.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build and Push PDP Docker Image
on:
release:
types: [published]
on: push
# release:
# types: [published]
jobs:
build-and-push-pdp-vanilla:
runs-on: ubuntu-latest
Expand All @@ -28,7 +28,7 @@ jobs:
if: "!github.event.release.prerelease"
uses: docker/build-push-action@v5
with:
push: true
push: false
context: .
platforms: linux/amd64,linux/arm64
tags: permitio/pdp-v2-vanilla:${{ github.event.release.tag_name }}, permitio/pdp-v2-vanilla:latest
Expand All @@ -39,7 +39,7 @@ jobs:
if: "github.event.release.prerelease"
uses: docker/build-push-action@v5
with:
push: true
push: false
context: .
platforms: linux/amd64,linux/arm64
tags: permitio/pdp-v2-vanilla:${{ github.event.release.tag_name }}
Expand Down Expand Up @@ -83,20 +83,31 @@ jobs:
if: "github.event.release.prerelease"
uses: docker/build-push-action@v5
with:
push: true
push: false
context: .
platforms: linux/amd64,linux/arm64
tags: permitio/pdp-v2:${{ github.event.release.tag_name }}
#tags: permitio/pdp-v2:${{ github.event.release.tag_name }}
tags: permitio/pdp-v2:0.3.0-rc.1
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build and push PDP image - (official release)
if: "!github.event.release.prerelease"
uses: docker/build-push-action@v5
with:
push: true
push: false
context: .
platforms: linux/amd64,linux/arm64
tags: permitio/pdp-v2:${{ github.event.release.tag_name }},permitio/pdp-v2:latest
#tags: permitio/pdp-v2:${{ github.event.release.tag_name }},permitio/pdp-v2:latest
tags: permitio/pdp-v2:0.3.0-rc.1
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Install Docker
uses: docker-practice/actions-setup-docker@master

- name: local PDP runnning
env:
# PDP_API_KEY: ${{ secrets.PDP_API_KEY }}
# PERMIT_API_KEY: ${{ secrets.PDP_API_KEY }}
run: docker run -p 7766:7000 --env PDP_API_KEY=permit_key_Hqeh8UrI1WpAwQJZGqkROkf5spS9b83Yk0z4YcSidhzEf4TTeE4ldKnIYQsfO7RM6vFml8nMinuVfeLEBn6SU3 --env PDP_DEBUG=true permitio/pdp-v2:0.3.0-rc.1
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ uvicorn[standard]>=0.17.6,<1
logzio-python-handler
ddtrace
protobuf>=3.20.2 # not directly required, pinned by Snyk to avoid a vulnerability
opal-client @ git+https://github.com/permitio/opal.git@master
opal-client @ git+https://github.com/permitio/opal.git@master#subdirectory=packages/opal-client


0 comments on commit 1bf15d4

Please sign in to comment.