Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/ci-go-library-mise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:
type: boolean
required: false
default: false
localstack-version:
type: string
required: false
default: "4.2.0"

jobs:
ci:
Expand Down Expand Up @@ -53,16 +57,16 @@ jobs:
uses: actions/cache@v5
with:
path: /tmp/localstack-image.tar
key: localstack-image-${{ runner.os }}
key: localstack-image-${{ runner.os }}-${{ inputs.localstack-version }}

- name: Load or pull LocalStack Docker image
if: ${{ inputs.localstack }}
run: |
if [ -f /tmp/localstack-image.tar ]; then
docker load -i /tmp/localstack-image.tar
else
docker pull localstack/localstack
docker save localstack/localstack -o /tmp/localstack-image.tar
docker pull localstack/localstack:${{ inputs.localstack-version }}
docker save localstack/localstack:${{ inputs.localstack-version }} -o /tmp/localstack-image.tar
fi

- name: Start LocalStack and run migrations
Expand Down