Commit 3d4c1d9
Eric Bower
·
2025-08-19 12:36:52 -0400 EDT
parent c42707d
chore: gha for more pgs images
1 files changed,
+58,
-0
+58,
-0
| ... | ... | @@ -81,6 +81,64 @@ jobs: | |
| 81 | 81 | platforms: ${{ env.PLATFORMS }} | |
| 82 | 82 | registry: ${{ env.REGISTRY }} | |
| 83 | 83 | web: false | |
| 84 | + | build-pgs-cdn: | |
| 85 | + | runs-on: ubuntu-22.04 | |
| 86 | + | needs: test | |
| 87 | + | steps: | |
| 88 | + | - name: Checkout repo | |
| 89 | + | uses: actions/checkout@v3 | |
| 90 | + | - name: Setup docker | |
| 91 | + | uses: ./.github/actions/setup | |
| 92 | + | with: | |
| 93 | + | registry: ${{ env.REGISTRY }} | |
| 94 | + | username: ${{ github.actor }} | |
| 95 | + | password: ${{ secrets.GITHUB_TOKEN }} | |
| 96 | + | - name: Collect web image metadata | |
| 97 | + | id: pgscdnmeta | |
| 98 | + | uses: docker/metadata-action@v4 | |
| 99 | + | with: | |
| 100 | + | images: ${{ env.REGISTRY }}/${{ github.repository }}/pgs-cdn | |
| 101 | + | - name: Build and push | |
| 102 | + | uses: docker/build-push-action@v3 | |
| 103 | + | with: | |
| 104 | + | context: . | |
| 105 | + | file: Dockerfile.cdn | |
| 106 | + | push: true | |
| 107 | + | target: release-web | |
| 108 | + | tags: ${{ steps.pgscdnmeta.outputs.tags }} | |
| 109 | + | labels: ${{ steps.pgscdnmeta.outputs.labels }} | |
| 110 | + | platforms: ${{ env.PLATFORMS }} | |
| 111 | + | cache-from: type=gha | |
| 112 | + | cache-to: type=gha,mode=max | |
| 113 | + | build-pgs-standalone: | |
| 114 | + | runs-on: ubuntu-22.04 | |
| 115 | + | needs: test | |
| 116 | + | steps: | |
| 117 | + | - name: Checkout repo | |
| 118 | + | uses: actions/checkout@v3 | |
| 119 | + | - name: Setup docker | |
| 120 | + | uses: ./.github/actions/setup | |
| 121 | + | with: | |
| 122 | + | registry: ${{ env.REGISTRY }} | |
| 123 | + | username: ${{ github.actor }} | |
| 124 | + | password: ${{ secrets.GITHUB_TOKEN }} | |
| 125 | + | - name: Collect web image metadata | |
| 126 | + | id: pgsstandalonemeta | |
| 127 | + | uses: docker/metadata-action@v4 | |
| 128 | + | with: | |
| 129 | + | images: ${{ env.REGISTRY }}/picosh/pgs | |
| 130 | + | - name: Build and push | |
| 131 | + | uses: docker/build-push-action@v3 | |
| 132 | + | with: | |
| 133 | + | context: . | |
| 134 | + | file: Dockerfile.standalone | |
| 135 | + | push: true | |
| 136 | + | target: release | |
| 137 | + | tags: ${{ steps.pgsstandalonemeta.outputs.tags }} | |
| 138 | + | labels: ${{ steps.pgsstandalonemeta.outputs.labels }} | |
| 139 | + | platforms: ${{ env.PLATFORMS }} | |
| 140 | + | cache-from: type=gha | |
| 141 | + | cache-to: type=gha,mode=max | |
| 84 | 142 | build-bouncer: | |
| 85 | 143 | runs-on: ubuntu-22.04 | |
| 86 | 144 | needs: test |