Skip to content

Commit

Permalink
Arch and Mageia
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaro committed Aug 10, 2024
2 parents c38bb2d + aa026e0 commit 5544b23
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 9 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/arch-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Push Arch Image

on:
push:
branches:
- main
paths:
- Dockerfile.arch
- .github/workflows/arch-push.yml
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
file: Dockerfile.arch
platforms: linux/amd64,linux/arm64
push: true
tags: garo/openssh-client:arch
35 changes: 35 additions & 0 deletions .github/workflows/mageia-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Push Mageia Image

on:
push:
branches:
- main
paths:
- Dockerfile.mageia
- .github/workflows/mageia-push.yml
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
file: Dockerfile.mageia
platforms: linux/amd64,linux/arm64
push: true
tags: garo/openssh-client:mageia
3 changes: 3 additions & 0 deletions Dockerfile.arch
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM archlinux
RUN pacman -Syu --noconfirm openssh && pacman -Scc --noconfirm && rm -rf /var/cache/pacman/pkg/*
WORKDIR /root
3 changes: 3 additions & 0 deletions Dockerfile.mageia
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM mageia
RUN dnf makecache && dnf install -y --setopt=install_weak_deps=False --setopt=tsflags=nodocs openssh-clients && dnf clean all && rm -rf /var/cache/dnf/*
WORKDIR /root
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,17 @@ alias sshdocker="docker run -it --rm -v ~/.ssh/id_rsa:/root/.ssh/id_rsa:ro garo/
## Available Images
The images are named `garo/openssh-client:tag-of-the-distro` and are available for the amd64 and arm64 architectures.

| Distro | Distro Version | OpenSSH Version | Tag(s)
| ------------ | -------------- | --------------- | ----------------- |
| _None_ | __/__ | 9.8p1 | `empty` |
| Busybox | 1.36.1 | 9.8p1 | `busybox` |
| Alpine | 3.20.2 | 9.7p1 |`alpine`, `latest` |
| Debian | 12 | 9.2p1 |`debian` |
| Fedora | 40 | 9.6p1 |`fedora` |
| Kali | 2024.2 | 9.7p1 |`kali` |
| Ubuntu | 24.04 | 9.6p1 |`ubuntu` |
| Distro | Distro Version | OpenSSH Version | Tag(s)
| ------- | -------------- | -------------- | ------------------ |
| _None_ | __/__ | 9.8p1 | `empty` |
| Busybox | 1.36.1 | 9.8p1 | `busybox` |
| Alpine | 3.20.2 | 9.7p1 | `alpine`, `latest` |
| Arch | 2024.08.04 | 9.8p1 | `arch` |
| Debian | 12 | 9.2p1 | `debian` |
| Fedora | 40 | 9.6p1 | `fedora` |
| Mageia | 9 | 9.3p1 | `mageia` |
| Kali | 2024.2 | 9.7p1 | `kali` |
| Ubuntu | 24.04 | 9.6p1 | `ubuntu` |

## Extra
- `empty` contains only 2 files:
Expand Down

0 comments on commit 5544b23

Please sign in to comment.