|
| 1 | +name: image build |
| 2 | + |
| 3 | +env: |
| 4 | + TAG: v0.35.79-gorgias |
| 5 | + |
| 6 | +on: |
| 7 | + push: |
| 8 | + |
| 9 | +jobs: |
| 10 | + Build: |
| 11 | + runs-on: ubuntu-latest |
| 12 | + steps: |
| 13 | + - name: Enable QEMU |
| 14 | + uses: docker/setup-qemu-action@v3 |
| 15 | + with: |
| 16 | + image: tonistiigi/binfmt:qemu-v8.1.5 |
| 17 | + cache-image: true |
| 18 | + |
| 19 | + - name: Set up Docker Buildx |
| 20 | + uses: docker/setup-buildx-action@v3 |
| 21 | + |
| 22 | + - uses: actions/checkout@v4 |
| 23 | + |
| 24 | + - name: Login to GAR us-east1-docker.pkg.dev |
| 25 | + uses: docker/login-action@v3 |
| 26 | + with: |
| 27 | + registry: us-east1-docker.pkg.dev |
| 28 | + username: _json_key |
| 29 | + password: ${{ secrets.GCLOUD_SERVICE_KEY_FILE }} |
| 30 | + |
| 31 | + - name: Login to GAR us-central1-docker.pkg.dev |
| 32 | + uses: docker/login-action@v3 |
| 33 | + with: |
| 34 | + registry: us-central1-docker.pkg.dev |
| 35 | + username: _json_key |
| 36 | + password: ${{ secrets.GCLOUD_SERVICE_KEY_FILE }} |
| 37 | + |
| 38 | + - name: Build and push |
| 39 | + uses: docker/build-push-action@v6 |
| 40 | + env: |
| 41 | + DOCKER_BUILD_CHECKS_ANNOTATIONS: false |
| 42 | + DOCKER_BUILD_RECORD_UPLOAD: false |
| 43 | + DOCKER_BUILD_SUMMARY: true |
| 44 | + with: |
| 45 | + # push: ${{ github.ref == 'refs/heads/gorgias' }} |
| 46 | + push: true |
| 47 | + context: rust/cubestore |
| 48 | + file: rust/cubestore/gorgias.Dockerfile |
| 49 | + tags: | |
| 50 | + us-east1-docker.pkg.dev/gorgias-helpdesk-staging/container-images/cubestore:${{ github.sha }} |
| 51 | + us-central1-docker.pkg.dev/gorgias-revenue-staging/container-images/cubestore:${{ github.sha }} |
| 52 | + us-east1-docker.pkg.dev/gorgias-helpdesk-production/container-images/cubestore:${{ github.sha }} |
| 53 | + us-central1-docker.pkg.dev/gorgias-revenue-production/container-images/cubestore:${{ github.sha }} |
| 54 | + us-east1-docker.pkg.dev/gorgias-helpdesk-staging/container-images/cubestore:${{ env.TAG }} |
| 55 | + us-central1-docker.pkg.dev/gorgias-revenue-staging/container-images/cubestore:${{ env.TAG }} |
| 56 | + us-east1-docker.pkg.dev/gorgias-helpdesk-production/container-images/cubestore:${{ env.TAG }} |
| 57 | + us-central1-docker.pkg.dev/gorgias-revenue-production/container-images/cubestore:${{ env.TAG }} |
| 58 | + cache-from: type=inline,image-manifest=true |
| 59 | + cache-to: type=inline,image-manifest=true |
0 commit comments