From 225ff16abecc0a60ca3b694faa3a5652cae890cd Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Wed, 6 Mar 2024 18:45:35 -0500 Subject: [PATCH] skopeo copy doesn't use cache --- action.yml | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/action.yml b/action.yml index b14c6a0..9e8fd22 100644 --- a/action.yml +++ b/action.yml @@ -44,16 +44,9 @@ inputs: description: Whether to enable caching for dnf required: false default: "true" - enable_cache_skopeo: - description: Whether to enable caching for skopeo - required: false - default: "true" dnf_cache_key: description: Overrides the dnf cache key required: false - skopeo_cache_key: - description: Overrides the skopeo cache key - required: false additional_templates: description: Space delimetered list of additional Lorax templates to include required: false @@ -70,15 +63,6 @@ runs: path: /cache/dnf key: ${{ inputs.dnf_cache_key || env.dnf_cache_key }} - - name: Load skopeo cache - env: - skopeo_cache_key: skopeo-${{ inputs.image_name }}-${{ inputs.image_tag }} - if: inputs.enable_cache_skopeo == 'true' - uses: actions/cache/restore@v4 - with: - path: /cache/skopeo - key: ${{ inputs.skopeo_cache_key || env.skopeo_cache_key }} - - name: Run docker image shell: bash run: | @@ -86,7 +70,6 @@ runs: if [[ -z "${{ github.action_ref }}" ]]; then if [[ "${{ github.ref_name }}" =~ (.*)/merge ]]; then tag=pr-${BASH_REMATCH[1]}; else tag=${{ github.ref_name }}; fi; fi if [[ -z "${tag}" ]]; then tag=${{ github.action_ref }}; fi if [[ "${{ inputs.enable_cache_dnf }}" == "true" ]]; then cache="${cache} -v /cache/dnf:/cache/dnf"; fi - if [[ "${{ inputs.enable_cache_skopeo }}" == "true" ]]; then cache="${cache} -v /cache/skopeo:/cache/skopeo"; fi docker run --privileged --volume ${{ github.workspace }}:/github/workspace/ ${cache} ghcr.io/jasonn3/build-container-installer:${tag} \ ARCH=${{ inputs.arch }} \ IMAGE_NAME=${{ inputs.image_name }} \ @@ -108,13 +91,3 @@ runs: with: path: /cache/dnf key: ${{ inputs.dnf_cache_key || env.dnf_cache_key }} - - - name: Save skopeo cache - env: - skopeo_cache_key: skopeo-${{ inputs.image_name }}-${{ inputs.image_tag }} - if: inputs.enable_cache_skopeo == 'true' - uses: actions/cache/save@v4 - with: - path: /cache/skopeo - key: ${{ inputs.skopeo_cache_key || env.skopeo_cache_key }} -