Skip to content

Commit

Permalink
#22706 Enabling cache on the docker image build step.
Browse files Browse the repository at this point in the history
  • Loading branch information
dcolina committed Sep 1, 2023
1 parent 808ac93 commit 867b147
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/cli-cicd-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
name: CLI tests
on:
workflow_dispatch:
inputs:
docker_build_cache:
description: 'Docker build cache'
default: 'false'
docker_build_push:
description: 'Docker build push'
default: 'false'
pull_request:
paths:
- 'tools/dotcms-cli/**'
Expand Down Expand Up @@ -47,12 +55,12 @@ jobs:
name: Build and push
uses: docker/build-push-action@v4
with:
push: false
push: ${{ github.event.inputs.docker_build_push || 'false' }}
context: docker/dotcms
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta.outputs.tags }}
pull: true
no-cache: true
no-cache: ${{ github.event.inputs.docker_build_cache || 'false' }}
build-args: |
BUILD_ID=${{ github.head_ref }}
BUILD_FROM=COMMIT
Expand Down

0 comments on commit 867b147

Please sign in to comment.