-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (33 loc) · 1.08 KB
/
build-gateway.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
on:
push:
branches:
- main
tags:
- "[0-9]+.[0-9]+.[0-9]+"
paths:
- .github/workflows/build-gateway.yaml
- "integrationos-cache/**"
- "integrationos-domain/**"
- "integrationos-gateway/**"
- Cargo.lock
- Dockerfile.common
- integrationos-gateway/Dockerfile
env:
docker_image_tag: ${{ github.ref == 'refs/heads/main' && github.sha || github.ref_name }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- uses: integration-os/google-artifact-registry-action@v2
with:
image: "us-docker.pkg.dev/integrationos/docker-oss/gateway:${{ env.docker_image_tag }}"
service_account: [email protected]
workload_identity_provider: projects/356173785332/locations/global/workloadIdentityPools/github-actions/providers/github-actions
file: integrationos-gateway/Dockerfile
context: .
build-args: |
"EXECUTABLE=integrationos-gateway"