Skip to content

Commit

Permalink
./
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Dec 15, 2023
1 parent 958bd31 commit b99572a
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions .github/workflows/demo-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ on:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
workflow_dispatch: {}

defaults:
run:
shell: bash

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand All @@ -27,32 +31,28 @@ jobs:

- name: Cache Container Images
id: cache-container-images
uses: jamesmortensen/cache-container-images-action@${{ github.sha }}
uses: ./
with:
runtime: podman
images: |
selenium/node-chrome:4.1.2-20220130
selenium/hub:4.1.2-20220130
- name: Check that we can install to .local without permission issues
shell: bash
run: |
ls -ltrSha ~/.local
echo "Attempting to install podman-compose. If it installs successfully, then permissions are ok"
pip3 install podman-compose
- name: Run this only if there is a cache hit
if: ${{ steps.cache-container-images.outputs.cache-hit == 'true' }}
shell: bash
run: echo "Container images are found in the cache"

- name: Run this only if there is a cache miss
if: ${{ steps.cache-container-images.outputs.cache-hit != 'true' }}
shell: bash
run: echo "Container images are not found in the cache!"

- name: Start and stop container with podman
shell: bash
run: |
echo Before running podman run...
echo Run podman run...
Expand All @@ -74,32 +74,28 @@ jobs:

- name: Cache Container Images
id: cache-container-images
uses: jamesmortensen/cache-container-images-action@${{ github.sha }}
uses: ./
with:
prefix-key: 'podman-cache ${{ github.run_id }}'
images: |
selenium/node-chrome:latest
selenium/hub:latest
- name: Check that we can install to .local without permission issues
shell: bash
run: |
ls -ltrSha ~/.local
echo "Attempting to install podman-compose. If it installs successfully, then permissions are ok"
pip3 install podman-compose
- name: Run this only if there is a cache hit
if: ${{ steps.cache-container-images.outputs.cache-hit == 'true' }}
shell: bash
run: echo "Container images are found in the cache"

- name: Run this only if there is a cache miss
if: ${{ steps.cache-container-images.outputs.cache-hit != 'true' }}
shell: bash
run: echo "Container images are not found in the cache!"

- name: Start and stop container with podman
shell: bash
run: |
echo Before running podman run...
echo Run podman run...
Expand Down

0 comments on commit b99572a

Please sign in to comment.