Skip to content

Commit

Permalink
build: allow sequential use of docker slim (#3315)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation authored Dec 19, 2024
1 parent a019ed5 commit 67e1aea
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/actions/docker-slim/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ runs:
steps:
- name: Setup docker slim
run: |
mkdir /tmp/ds
cd /tmp/ds
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
if [ -d "/tmp/ds" ]; then
mkdir /tmp/ds
cd /tmp/ds
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
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 67e1aea

Please sign in to comment.