Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 55 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: "Docker"

on:
workflow_dispatch:

push:
branches: ["master"]

Expand All @@ -11,11 +13,61 @@ permissions:
contents: read

jobs:
test:
name: "Test"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4

- name: Build image for testing
uses: docker/build-push-action@v7
with:
context: .
file: ./Dockerfile
push: false
tags: dockette/ssh:latest-test
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
load: true

- name: Test SSH client
run: docker run --rm dockette/ssh:latest-test ssh -V

- name: Test sshpass
run: docker run --rm dockette/ssh:latest-test sshpass -V

- name: Test shell availability
run: docker run --rm dockette/ssh:latest-test sh -lc 'command -v sh && command -v bash'

build:
name: "Build"
needs: test
uses: dockette/.github/.github/workflows/docker.yml@master
secrets: inherit
with:
image: "dockette/ssh"
tag: "latest"
context: "."
image: "dockette/ssh"
tag: "latest"
context: "."
platforms: "linux/amd64,linux/arm64"
push: ${{ github.ref == 'refs/heads/master' }}

docs:
name: "Docs"
needs: build
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
steps:
- name: Checkout
uses: actions/checkout@v6

- name: Update Docker Hub description
uses: peter-evans/dockerhub-description@v5
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: dockette/ssh
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
DOCKER_IMAGE=dockette/ssh

build: docker-build

test:
docker build -t ${DOCKER_IMAGE}:latest-test .
docker run --rm ${DOCKER_IMAGE}:latest-test ssh -V
docker run --rm ${DOCKER_IMAGE}:latest-test sshpass -V
docker run --rm ${DOCKER_IMAGE}:latest-test sh -lc 'command -v sh && command -v bash'

run:
docker run -it --rm ${DOCKER_IMAGE} /bin/bash

docker-build:
docker buildx \
build \
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# SSH
<h1 align=center>Dockette / SSH</h1>

[![Docker Stars](https://img.shields.io/docker/stars/dockette/ssh.svg?style=flat)](https://hub.docker.com/r/dockette/ssh/)
[![Docker Pulls](https://img.shields.io/docker/pulls/dockette/ssh.svg?style=flat)](https://hub.docker.com/r/dockette/ssh/)

## Discussion / Help

[![Join the chat](https://img.shields.io/gitter/room/dockette/dockette.svg?style=flat-square)](https://gitter.im/dockette/dockette?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
<p align=center>
<a href="https://github.com/dockette/ssh/actions"><img src="https://github.com/dockette/ssh/actions/workflows/docker.yml/badge.svg" alt="GitHub Actions"></a>
<a href="https://hub.docker.com/r/dockette/ssh"><img src="https://img.shields.io/docker/pulls/dockette/ssh.svg" alt="Docker Hub pulls"></a>
<a href="https://github.com/sponsors/f3l1x"><img src="https://img.shields.io/badge/sponsor-GitHub%20Sponsors-ea4aaa" alt="GitHub Sponsors"></a>
<a href="https://github.com/orgs/dockette/discussions"><img src="https://img.shields.io/badge/support-discussions-6f42c1" alt="Support/Discussions"></a>
</p>

## Usage

```
```bash
docker run -it --rm dockette/ssh /bin/bash
```

```
```bash
# ED25519
$ ssh-keygen -t ed25519 -C "Your key"

Expand Down