Only allow 1 replica count for backend memory in helm chart #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tagged Releases | |
| on: | |
| push: | |
| tags: | |
| - '*' | |
| branches: | |
| - 'main' | |
| jobs: | |
| publish-container-image: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Log into registry ghcr.io | |
| uses: docker/login-action@v4 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v4 | |
| - name: Build base orchestrator image (smoke test) | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| target: runner | |
| platforms: linux/amd64 | |
| tags: campaign-orchestrator-base:ci | |
| load: true | |
| push: false | |
| - name: Build full orchestrator image (smoke test) | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| target: full | |
| platforms: linux/amd64 | |
| tags: campaign-orchestrator-full:ci | |
| load: true | |
| push: false | |
| - name: Smoke test orchestrator image targets | |
| run: | | |
| docker run --rm campaign-orchestrator-base:ci python -c "import intersect_orchestrator" | |
| docker run --rm campaign-orchestrator-full:ci python -c "import intersect_orchestrator, pymongo, psycopg" | |
| - name: Build and push Orchestrator | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| target: runner | |
| platforms: linux/amd64,linux/arm64 | |
| tags: ghcr.io/intersect-sdk/campaign-orchestrator:latest | |
| push: true | |
| - name: Push tagged images | |
| if: startsWith(github.ref, 'refs/tags') | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| target: runner | |
| platforms: linux/amd64,linux/arm64 | |
| tags: | | |
| ghcr.io/intersect-sdk/campaign-orchestrator:${{ github.ref_name }} | |
| push: true | |
| - name: Build and push Orchestrator Full Backends (latest) | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| target: full | |
| platforms: linux/amd64,linux/arm64 | |
| tags: ghcr.io/intersect-sdk/campaign-orchestrator-backends-full:latest | |
| push: true | |
| - name: Push tagged Orchestrator Full Backends images | |
| if: startsWith(github.ref, 'refs/tags') | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: . | |
| target: full | |
| platforms: linux/amd64,linux/arm64 | |
| tags: | | |
| ghcr.io/intersect-sdk/campaign-orchestrator-backends-full:${{ github.ref_name }} | |
| push: true | |
| - name: Build and push Random Number Service (latest) | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: ./services/random_number_service | |
| platforms: linux/amd64,linux/arm64 | |
| tags: ghcr.io/intersect-sdk/campaign-orchestrator/random-number-service:latest | |
| push: true | |
| - name: Push tagged Random Number Service | |
| if: startsWith(github.ref, 'refs/tags') | |
| uses: docker/build-push-action@v7 | |
| with: | |
| context: ./services/random_number_service | |
| platforms: linux/amd64,linux/arm64 | |
| tags: | | |
| ghcr.io/intersect-sdk/campaign-orchestrator/random-number-service:${{ github.ref_name }} | |
| push: true |