generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Exclude
docker-stack-await
image from docker prune
The image gets cleaned away after each run, which causes a lot of unnecessary pulls.
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -37,6 +37,11 @@ jobs: | |
mkdir -p ~/.ssh | ||
ssh-keyscan -t rsa -p 2222 127.0.0.1 >> ~/.ssh/known_hosts | ||
- name: Run a container to verify that docker system prune will work | ||
run: | | ||
ssh -p 2222 [email protected] docker run --name debian debian:12 | ||
shell: bash | ||
|
||
- name: Test | ||
uses: ./action | ||
with: | ||
|
@@ -61,3 +66,24 @@ jobs: | |
exit 1 | ||
fi | ||
shell: bash | ||
|
||
- name: Check that docker-stack-wait image is still there | ||
run: | | ||
ssh -p 2222 [email protected] docker image inspect sudobmitch/docker-stack-wait:v0.2.5 | ||
shell: bash | ||
|
||
- name: Check that the Debian container got removed | ||
run: | | ||
if ssh -p 2222 [email protected] docker container inspect debian; then | ||
echo "Debian container was not cleaned up!" | ||
exit 1 | ||
fi | ||
shell: bash | ||
|
||
- name: Check that the Debian image got removed | ||
run: | | ||
if ssh -p 2222 [email protected] docker image inspect debian:12; then | ||
echo "Debian image was not cleaned up!" | ||
exit 1 | ||
fi | ||
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