Skip to content

Commit

Permalink
build: attempt to fix docker slim (#3322)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation authored Dec 19, 2024
1 parent e57b6b7 commit 2fe6711
Showing 1 changed file with 5 additions and 4 deletions.
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

0 comments on commit 2fe6711

Please sign in to comment.