Skip to content

Commit

Permalink
Add support for caching, disabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwi committed Aug 9, 2024
1 parent 49d2f33 commit f572f09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ on:
type: string
description: ref to pull and build default to github.ref
required: false
ENABLE_DOCKER_CACHE:
ENABLE_DOCKER_BUILD_CACHE:
type: boolean
default: false
description: 'Whether to use cache when building the image'
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
CONTAINER_TEST_RUN_OPTIONS: ${{ inputs.CONTAINER_TEST_RUN_OPTIONS }}
CONTAINER_TEST_COMMAND: ${{ inputs.CONTAINER_TEST_COMMAND }}
OUTPUT_TAG_INDEX: ${{ inputs.OUTPUT_TAG_INDEX }}
ENABLE_CACHE: ${{ inputs.ENABLE_DOCKER_CACHE }}
ENABLE_CACHE: ${{ inputs.ENABLE_DOCKER_BUILD_CACHE }}
env:
GITHUB_TOKEN: ${{ github.token }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ on:
default: .
description: Whenever the WF requires a different path than . for the revision file
required: false
ENABLE_DOCKER_CACHE:
ENABLE_DOCKER_BUILD_CACHE:
type: boolean
default: false
description: 'Whether to use cache when building the image'
Expand Down Expand Up @@ -274,7 +274,7 @@ jobs:
VAULT_SECRETS: ${{ inputs.VAULT_SECRETS }}
TELEPORT_APP: ${{ inputs.TELEPORT_APP }}
TELEPORT_PROXY_URL: ${{ inputs.TELEPORT_PROXY_URL }}
ENABLE_DOCKER_CACHE: ${{ inputs.ENABLE_DOCKER_CACHE }}
ENABLE_DOCKER_BUILD_CACHE: ${{ inputs.ENABLE_DOCKER_CACHE }}
secrets:
GH_BOT_DEPLOY_KEY: ${{ secrets.GH_BOT_DEPLOY_KEY }}
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
Expand Down

0 comments on commit f572f09

Please sign in to comment.