Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit 9be0fd0

Browse files
committed
add: reusable workflow
1 parent 2dbfd16 commit 9be0fd0

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# .github/workflows/app-build-reusable.yml (in AngleProtocol/github-workflows repository)
2+
3+
name: Build and update staging (Reusable)
4+
5+
on:
6+
workflow_call:
7+
inputs:
8+
app:
9+
required: true
10+
type: string
11+
description: 'The name of the app.'
12+
image-url:
13+
required: true
14+
type: string
15+
description: 'The URL of the Docker image.'
16+
gcloud-credentials:
17+
required: true
18+
type: string
19+
description: 'The Google Cloud credentials JSON.'
20+
21+
secrets:
22+
GITHUB_TOKEN:
23+
required: true
24+
GCLOUD_CREDENTIALS:
25+
required: true
26+
27+
jobs:
28+
build-image:
29+
runs-on: ubuntu-latest
30+
steps:
31+
- name: Build Image with Composite Action
32+
uses: AngleProtocol/github-workflows/.github/actions/app-build.yml@main
33+
with:
34+
app: ${{ inputs.app }}
35+
token: ${{ secrets.GITHUB_TOKEN }}
36+
image-url: ${{ inputs.image-url }}
37+
gcloud-credentials: ${{ inputs.gcloud-credentials }}
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
GCLOUD_CREDENTIALS: ${{ secrets.GCLOUD_CREDENTIALS }}

0 commit comments

Comments
 (0)