Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: attempt to fix docker slim #3322

Merged
merged 1 commit into from
Dec 19, 2024
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
9 changes: 5 additions & 4 deletions .github/actions/docker-slim/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ runs:
steps:
- name: Setup docker slim
run: |
if [ -d "/tmp/ds" ]; then
mkdir /tmp/ds
cd /tmp/ds
mkdir -p /tmp/ds
cd /tmp/ds
if [ ! -f /tmp/ds/slim ]; then
rm -f ds.tar.gz
curl -L -o ds.tar.gz https://github.com/slimtoolkit/slim/releases/download/1.40.11/dist_linux.tar.gz
tar -xvf ds.tar.gz --strip-components 1
echo "/tmp/ds" >> $GITHUB_PATH
fi
echo "/tmp/ds" >> $GITHUB_PATH
shell: bash
- name: Run docker slim
run: slim build --target ${{ inputs.target }} --tag ${{ inputs.tag }} --preserve-path /usr/share/nginx/html
Expand Down
Loading