Skip to content

Commit

Permalink
Fix cache invalidation command
Browse files Browse the repository at this point in the history
  • Loading branch information
gerrod3 committed Oct 22, 2024
1 parent c8c83b8 commit 7f7d5f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/actions/base_images/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ runs:
if: env.BUILD_IMAGES && steps.cache.outputs.cache-hit == 'true'
run: |
echo "Deleting existing cache for ${{ steps.hash_key.outputs.base_cache_key }}"
gh extension install actions/gh-actions-cache
gh actions-cache delete "base-images=${{ steps.hash_key.outputs.base_cache_key }}" --R ${{ github.repository }} -B ${{ github.ref }} --confirm
gh cache delete "base-images=${{ steps.hash_key.outputs.base_cache_key }}" -R ${{ github.repository }}
shell: bash

- name: Cache podman images
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ jobs:
- name: Build base images
id: build_base_images
uses: "./.github/actions/base_images"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
python_version: "3.9"

Expand All @@ -78,8 +80,6 @@ jobs:
- name: Build App Image
id: build_image
uses: "./.github/actions/build_image"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
image_name: ${{ matrix.image_name }}
image_variant: "stable"
Expand Down

0 comments on commit 7f7d5f9

Please sign in to comment.