Sign inSign up

tavib47/alpine-ci

By tavib47

•Updated 8 months ago

Lightweight Alpine image with SSH, curl, and jq for CI utility tasks

Image
0

918

tavib47/alpine-ci repository overview

⁠Alpine CI Image

Docker Hub Image Size

A lightweight Alpine image for CI/CD utility tasks such as SSH operations, API calls, and JSON processing.

⁠Features

  • openssh-client — SSH, SCP, ssh-agent, ssh-add for remote operations
  • curl — HTTP requests for notifications and file uploads
  • jq — JSON parsing for API response processing

⁠Supported Tags

  • latest

⁠Quick Start

docker pull tavib47/alpine-ci

⁠Usage Examples

⁠SSH Setup
.ssh_setup:
  image: tavib47/alpine-ci
  before_script:
    - eval $(ssh-agent -s)
    - echo "$SSH_PRIVATE_KEY" | ssh-add -
    - mkdir -p ~/.ssh
    - chmod 700 ~/.ssh
⁠Discord Notification
notify:
  image: tavib47/alpine-ci
  script:
    - |
      curl -H "Content-Type: application/json" \
        -d "{\"content\": \"Deployment complete\"}" \
        "$DISCORD_WEBHOOK_URL"
⁠GitLab Package Registry Cleanup
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

⁠Building

docker build -t tavib47/alpine-ci:latest ./alpine-ci

⁠Source

GitHub Repository⁠

Tag summary

Content type

Image

Digest

sha256:ccb3ac8ba…

Size

8.1 MB

Last updated

8 months ago

docker pull tavib47/alpine-ci