Skip to content

Commit e0d53ec

Browse files
committed
try build
1 parent 5ceac71 commit e0d53ec

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

.github/workflows/image-build.yaml

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

0 commit comments

Comments
 (0)