-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: use custom action for docker slim
- Loading branch information
1 parent
9fe9ae8
commit f6c7708
Showing
4 changed files
with
52 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Docker Slim | ||
description: Create slim versions of an existing container images | ||
|
||
inputs: | ||
target: | ||
description: The target image | ||
required: true | ||
tag: | ||
description: The target image | ||
required: true | ||
runs: | ||
using: composite | ||
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 --directory | ||
echo "/tmp/ds/dist_linux" >> $GITHUB_PATH | ||
shell: bash | ||
- name: Run docker slim | ||
run: slim build --target ${{ inputs.target }} --tag ${{ inputs.tag }} --preserve-path /usr/share/nginx/html | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters