|
14 | 14 | uses: ./.github/workflows/tests.yml |
15 | 15 | secrets: inherit |
16 | 16 |
|
17 | | - build-and-push-pdp-vanilla: |
18 | | - needs: pdp-tests |
19 | | - runs-on: ubuntu-latest |
20 | | - steps: |
21 | | - - name: Checkout code |
22 | | - uses: actions/checkout@v4 |
23 | | - |
24 | | - - name: Set up QEMU |
25 | | - uses: docker/setup-qemu-action@v3 |
26 | | - |
27 | | - - name: Set up Docker Buildx |
28 | | - uses: docker/setup-buildx-action@v3 |
29 | | - |
30 | | - - name: Login to Docker Hub |
31 | | - uses: docker/login-action@v3 |
32 | | - with: |
33 | | - username: ${{ secrets.DOCKERHUB_USERNAME }} |
34 | | - password: ${{ secrets.DOCKERHUB_TOKEN }} |
35 | | - |
36 | | - - name: Pre build - for PDP-Vanilla |
37 | | - run: echo "${{ github.event.release.tag_name }}" | cut -d '-' -f 1 > permit_pdp_version |
38 | | - |
39 | | - - name: Build and push PDP-Vanilla - (official release) |
40 | | - if: "!github.event.release.prerelease" |
41 | | - uses: docker/build-push-action@v5 |
42 | | - with: |
43 | | - push: true |
44 | | - context: . |
45 | | - platforms: linux/amd64,linux/arm64 |
46 | | - tags: permitio/pdp-v2-vanilla:${{ github.event.release.tag_name }}, permitio/pdp-v2-vanilla:latest |
47 | | - cache-from: type=gha |
48 | | - cache-to: type=gha,mode=max |
49 | | - build-args: | |
50 | | - OPA_BUILD=vanilla |
51 | | -
|
52 | | - - name: Build and push PDP-Vanilla image - (pre-release) |
53 | | - if: "github.event.release.prerelease" |
54 | | - uses: docker/build-push-action@v5 |
55 | | - with: |
56 | | - push: true |
57 | | - context: . |
58 | | - platforms: linux/amd64,linux/arm64 |
59 | | - tags: permitio/pdp-v2-vanilla:${{ github.event.release.tag_name }} |
60 | | - cache-from: type=gha |
61 | | - cache-to: type=gha,mode=max |
62 | | - build-args: | |
63 | | - OPA_BUILD=vanilla |
64 | | -
|
65 | 17 | build-and-push-pdp: |
66 | 18 | needs: pdp-tests |
67 | 19 | runs-on: ubuntu-latest |
|
0 commit comments