Lightweight Alpine image with SSH, curl, and jq for CI utility tasks
918
A lightweight Alpine image for CI/CD utility tasks such as SSH operations, API calls, and JSON processing.
openssh-client — SSH, SCP, ssh-agent, ssh-add for remote operationscurl — HTTP requests for notifications and file uploadsjq — JSON parsing for API response processinglatestdocker pull tavib47/alpine-ci
.ssh_setup:
image: tavib47/alpine-ci
before_script:
- eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY" | ssh-add -
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
notify:
image: tavib47/alpine-ci
script:
- |
curl -H "Content-Type: application/json" \
-d "{\"content\": \"Deployment complete\"}" \
"$DISCORD_WEBHOOK_URL"
cleanup:
image: tavib47/alpine-ci
script:
- |
curl -s --header "PRIVATE-TOKEN: $CI_TOKEN" \
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages" | \
jq -r '.[] | .id' | while read id; do
curl -s --request DELETE \
--header "PRIVATE-TOKEN: $CI_TOKEN" \
"$CI_API_V4_URL/projects/$CI_PROJECT_ID/packages/$id"
done
docker build -t tavib47/alpine-ci:latest ./alpine-ci
Content type
Image
Digest
sha256:ccb3ac8ba…
Size
8.1 MB
Last updated
8 months ago
docker pull tavib47/alpine-ci