Skip to content

Commit

Permalink
build: allow sequential use of docker slim
Browse files Browse the repository at this point in the history
  • Loading branch information
kyubisation committed Dec 19, 2024
1 parent b47ee15 commit 2d47d90
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 2d47d90

Please sign in to comment.