Skip to content

Commit 47de878

Browse files
committed
fix: allow disabling cache
1 parent d1f0c66 commit 47de878

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/actions/buildpush/action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ inputs:
2222
docker_hub_account:
2323
description: "Docker Hub account to push the image to"
2424
required: true
25-
cache:
26-
description: "Cache the build"
25+
no-cache:
26+
description: "Disable cache during build"
2727
required: false
28-
default: "true"
28+
default: "false"
2929
runs:
3030
using: "composite"
3131
steps:
@@ -70,4 +70,4 @@ runs:
7070
platforms: ${{ inputs.platforms || 'linux/amd64,linux/arm64' }}
7171
push: true
7272
tags: ${{ inputs.docker_hub_account }}/dbc-demo:latest-cloud
73-
cache: ${{ inputs.cache }}
73+
no-cache: ${{ inputs.no-cache }}

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ on:
2626
- linux/amd64,linux/arm64
2727
- linux/amd64
2828
- linux/arm64
29-
cache:
29+
no-cache:
3030
type: boolean
31-
description: Use cache while building
32-
default: true
31+
description: Disable cache during build
32+
default: false
3333
jobs:
3434
build:
3535
runs-on: ubuntu-latest
@@ -46,4 +46,4 @@ jobs:
4646
docker_username: ${{ vars.DOCKER_USERNAME }}
4747
docker_password: ${{ secrets.DOCKER_PASSWORD }}
4848
docker_hub_account: ${{ vars.DOCKER_HUB_ACCOUNT }}
49-
cache: ${{ inputs.cache }}
49+
no-cache: ${{ inputs.no-cache }}

0 commit comments

Comments
 (0)