Skip to content

Commit 9fc5ada

Browse files
committed
Added lfs support
1 parent 7ea27c7 commit 9fc5ada

File tree

5 files changed

+34
-0
lines changed

5 files changed

+34
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ on:
3030
type: string
3131
description: "Specify build platforms. Takes precedence over `build-arm`."
3232
required: false
33+
lfs:
34+
type: boolean
35+
description: "Support git LFS"
36+
default: false
37+
required: false
3338
secrets:
3439
build-secrets:
3540
description: "The Docker secrets to use for the build"
@@ -51,6 +56,7 @@ jobs:
5156
uses: actions/checkout@v4
5257
with:
5358
fetch-depth: 0
59+
lfs: ${{inputs.lfs}}
5460

5561
- name: Set up QEMU
5662
if: inputs.build-arm && github.ref_name == github.event.repository.default_branch

.github/workflows/gcp_build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ on:
4848
description: "Comma-separated list of image tags (e.g., 'latest,v1.2.3')"
4949
required: false
5050
default: "latest"
51+
lfs:
52+
type: boolean
53+
description: "Support git LFS"
54+
default: false
55+
required: false
5156
secrets:
5257
function-admin-api-key:
5358
description: "The API key for the Lambda Feedback function admin API"
@@ -73,6 +78,8 @@ jobs:
7378

7479
steps:
7580
- uses: 'actions/checkout@v4'
81+
with:
82+
lfs: ${{inputs.lfs}}
7683

7784
- id: 'auth'
7885
uses: 'google-github-actions/auth@v3'

.github/workflows/lambda_build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ on:
4848
description: "When enabled this will run the disk clean up step"
4949
required: false
5050
default: false
51+
lfs:
52+
type: boolean
53+
description: "Support git LFS"
54+
default: false
55+
required: false
5156
secrets:
5257
aws-key-id:
5358
description: "The AWS access key ID"
@@ -77,6 +82,7 @@ jobs:
7782
- name: Checkout
7883
uses: actions/checkout@v4
7984
with:
85+
lfs: ${{inputs.lfs}}
8086
fetch-depth: 0
8187
- name: Configure AWS credentials
8288
uses: aws-actions/configure-aws-credentials@v4

.github/workflows/production_deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ on:
4848
type: string
4949
required: true
5050
default: 'main'
51+
lfs:
52+
type: boolean
53+
description: "Support git LFS"
54+
default: false
55+
required: false
5156
secrets:
5257
aws-key-id:
5358
description: "The AWS access key ID"
@@ -96,6 +101,7 @@ jobs:
96101
with:
97102
ref: ${{ needs.checkout.outputs.branch }}
98103
fetch-depth: 0
104+
lfs: ${{inputs.lfs}}
99105

100106
- name: Get latest tag
101107
id: get-latest-tag
@@ -233,6 +239,7 @@ jobs:
233239
build-args: ${{ inputs.build-args }}
234240
build-platforms: ${{ inputs.build-platforms }}
235241
build-push: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref_name == github.event.repository.default_branch) }}
242+
lfs: ${{inputs.lfs}}
236243
secrets:
237244
aws-key-id: ${{ secrets.aws-key-id }}
238245
aws-secret-key: ${{ secrets.aws-secret-key }}
@@ -270,6 +277,7 @@ jobs:
270277
build-platforms: ${{ inputs.build-platforms }}
271278
build-push: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref_name == github.event.repository.default_branch) }}
272279
image-tag: ${{ needs.version.outputs.version-tag}}
280+
lfs: ${{inputs.lfs}}
273281
secrets:
274282
function-admin-api-key: ${{ secrets.function-admin-api-key }}
275283
gcp_credentials: ${{ secrets.gcp_credentials }}

.github/workflows/staging_deploy.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ on:
3838
description: "The platforms to build the image for"
3939
default: "aws"
4040
required: false
41+
lfs:
42+
type: boolean
43+
description: "Support git LFS"
44+
default: false
45+
required: false
4146
secrets:
4247
aws-key-id:
4348
description: "The AWS access key ID"
@@ -71,6 +76,7 @@ jobs:
7176
build-args: ${{ inputs.build-args }}
7277
build-platforms: ${{ inputs.build-platforms }}
7378
build-push: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref_name == github.event.repository.default_branch) }}
79+
lfs: ${{inputs.lfs}}
7480
secrets:
7581
aws-key-id: ${{ secrets.aws-key-id }}
7682
aws-secret-key: ${{ secrets.aws-secret-key }}
@@ -107,6 +113,7 @@ jobs:
107113
build-args: ${{ inputs.build-args }}
108114
build-platforms: ${{ inputs.build-platforms }}
109115
build-push: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref_name == github.event.repository.default_branch) }}
116+
lfs: ${{inputs.lfs}}
110117
secrets:
111118
function-admin-api-key: ${{ secrets.function-admin-api-key }}
112119
gcp_credentials: ${{ secrets.gcp_credentials }}

0 commit comments

Comments
 (0)