Skip to content
Snippets Groups Projects
Unverified Commit 18e06e0a authored by Landon James's avatar Landon James Committed by GitHub
Browse files

Update docker-build action with use-cache input (#4079)

## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here -->
Makes the gradle cache step in the composite `docker-build` action
conditional and disables it for release builds.

## Description
<!--- Describe your changes in detail -->

## Testing
<!--- Please describe in detail how you tested your changes -->
<!--- Include details of your testing environment, and the tests you ran
to -->
<!--- see how your change affects other areas of the code, etc. -->


----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
parent 5f849fde
Branches
Tags
No related merge requests found
......@@ -12,11 +12,18 @@ inputs:
action-arguments:
description: Arguments to pass to the action
required: false
use_cache:
description: Whether to use the gradle cache
type: boolean
required: false
default: true
runs:
using: composite
steps:
- uses: actions/cache@v4
name: Gradle Cache
- name: Gradle Cache
if: ${{ github.event.inputs.use_cache == 'true' }}
uses: actions/cache@v4
with:
path: |
gradle/caches
......
......@@ -124,6 +124,7 @@ jobs:
uses: ./smithy-rs/.github/actions/docker-build
with:
action: check-semver-hazards
use_cache: false
get-or-create-release-branch:
name: Get or create a release branch
......@@ -185,6 +186,7 @@ jobs:
uses: ./smithy-rs/.github/actions/docker-build
with:
action: generate-smithy-rs-release
use_cache: false
- name: Download all artifacts
uses: ./smithy-rs/.github/actions/download-all-artifacts
# This step is not idempotent, as it pushes release artifacts to the `smithy-rs-release-1.x.y` branch. However,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment