feat: Automatically push all Docker images

The following Docker images get pushed:

- `kkrypt0nn/wordlists:alpine-latest`
- `kkrypt0nn/wordlists:debian-latest`
- `kkrypt0nn/wordlists:ubuntu-latest`
This commit is contained in:
Krypton
2025-03-06 16:29:14 +01:00
parent a39216cdc4
commit 2405bc934e
7 changed files with 44 additions and 10 deletions

1
.dockerignore vendored
View File

@@ -3,4 +3,5 @@
tools/ tools/
.gitattributes .gitattributes
CONTRIBUTING.md CONTRIBUTING.md
Dockerfile*
wordlists.json wordlists.json

View File

@@ -8,25 +8,25 @@ on:
jobs: jobs:
build-and-push: build-and-push:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64, arm64]
os: [alpine, debian, ubuntu]
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Log in to Docker Hub - name: Log in to Docker Hub
uses: docker/login-action@v2 uses: docker/login-action@v2
with: with:
username: ${{ secrets.DOCKER_USERNAME }} username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }} password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
- name: Build and push Docker image - name: Build and push Docker image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5
with: with:
context: . context: .
file: ./Dockerfile file: ./Dockerfile.${{ matrix.os }}
platforms: linux/amd64,linux/arm64 platforms: linux/${{ matrix.architecture }}
push: true push: true
tags: kkrypt0nn/wordlists:latest tags: kkrypt0nn/wordlists:${{ matrix.os }}-latest

View File

@@ -1,5 +1,4 @@
FROM alpine:latest FROM alpine:latest
# FROM ubuntu:latest
COPY wordlists /wordlists COPY wordlists /wordlists

5
Dockerfile.debian vendored Normal file
View File

@@ -0,0 +1,5 @@
FROM debian:latest
COPY wordlists /wordlists
WORKDIR /wordlists

5
Dockerfile.ubuntu vendored Normal file
View File

@@ -0,0 +1,5 @@
FROM ubuntu:latest
COPY wordlists /wordlists
WORKDIR /wordlists

14
README.md vendored
View File

@@ -7,7 +7,9 @@
</h4> </h4>
<p align="center"> <p align="center">
<a href="//hub.docker.com/r/kkrypt0nn/wordlists"><img src="https://img.shields.io/docker/v/kkrypt0nn/wordlists?logo=docker"></a> <a href="//hub.docker.com/r/kkrypt0nn/wordlists"><img src="https://img.shields.io/docker/v/kkrypt0nn/wordlists/alpine-latest?logo=docker"></a>
<a href="//hub.docker.com/r/kkrypt0nn/wordlists"><img src="https://img.shields.io/docker/v/kkrypt0nn/wordlists/debian-latest?logo=docker"></a>
<a href="//hub.docker.com/r/kkrypt0nn/wordlists"><img src="https://img.shields.io/docker/v/kkrypt0nn/wordlists/ubuntu-latest?logo=docker"></a>
<a href="//github.com/kkrypt0nn/wordlists"><img src="https://img.shields.io/github/repo-size/kkrypt0nn/wordlists"></a> <a href="//github.com/kkrypt0nn/wordlists"><img src="https://img.shields.io/github/repo-size/kkrypt0nn/wordlists"></a>
<a href="//github.com/kkrypt0nn/wordlists/commits"><img src="https://img.shields.io/github/last-commit/kkrypt0nn/wordlists"></a> <a href="//github.com/kkrypt0nn/wordlists/commits"><img src="https://img.shields.io/github/last-commit/kkrypt0nn/wordlists"></a>
<a href="//github.com/kkrypt0nn/wordlists/contributors"><img src="https://img.shields.io/github/contributors/kkrypt0nn/wordlists"></a> <a href="//github.com/kkrypt0nn/wordlists/contributors"><img src="https://img.shields.io/github/contributors/kkrypt0nn/wordlists"></a>
@@ -27,6 +29,16 @@ If you have a wordlist that you wish to see here, please post them [here](https:
If you already have a wordlist ready to be added, make sure to [open a pull request](https://github.com/kkrypt0nn/wordlists/pulls). If you already have a wordlist ready to be added, make sure to [open a pull request](https://github.com/kkrypt0nn/wordlists/pulls).
## 🐳 Docker Images
There are three Docker images available with for the three main OS images:
- `alpine-latest`
- `debian-latest`
- `ubuntu-latest`
These will have a `/wordlists` file with all the wordlists in there for you to use them.
## 📜 Wordlists ## 📜 Wordlists
<details> <details>

14
tools/make_readme.py vendored
View File

@@ -40,7 +40,9 @@ readme_template = """<h1 align="center">
</h4> </h4>
<p align="center"> <p align="center">
<a href="//hub.docker.com/r/kkrypt0nn/wordlists"><img src="https://img.shields.io/docker/v/kkrypt0nn/wordlists?logo=docker"></a> <a href="//hub.docker.com/r/kkrypt0nn/wordlists"><img src="https://img.shields.io/docker/v/kkrypt0nn/wordlists/alpine-latest?logo=docker"></a>
<a href="//hub.docker.com/r/kkrypt0nn/wordlists"><img src="https://img.shields.io/docker/v/kkrypt0nn/wordlists/debian-latest?logo=docker"></a>
<a href="//hub.docker.com/r/kkrypt0nn/wordlists"><img src="https://img.shields.io/docker/v/kkrypt0nn/wordlists/ubuntu-latest?logo=docker"></a>
<a href="//github.com/kkrypt0nn/wordlists"><img src="https://img.shields.io/github/repo-size/kkrypt0nn/wordlists"></a> <a href="//github.com/kkrypt0nn/wordlists"><img src="https://img.shields.io/github/repo-size/kkrypt0nn/wordlists"></a>
<a href="//github.com/kkrypt0nn/wordlists/commits"><img src="https://img.shields.io/github/last-commit/kkrypt0nn/wordlists"></a> <a href="//github.com/kkrypt0nn/wordlists/commits"><img src="https://img.shields.io/github/last-commit/kkrypt0nn/wordlists"></a>
<a href="//github.com/kkrypt0nn/wordlists/contributors"><img src="https://img.shields.io/github/contributors/kkrypt0nn/wordlists"></a> <a href="//github.com/kkrypt0nn/wordlists/contributors"><img src="https://img.shields.io/github/contributors/kkrypt0nn/wordlists"></a>
@@ -60,6 +62,16 @@ If you have a wordlist that you wish to see here, please post them [here](https:
If you already have a wordlist ready to be added, make sure to [open a pull request](https://github.com/kkrypt0nn/wordlists/pulls). If you already have a wordlist ready to be added, make sure to [open a pull request](https://github.com/kkrypt0nn/wordlists/pulls).
## 🐳 Docker Images
There are three Docker images available with for the three main OS images:
- `alpine-latest`
- `debian-latest`
- `ubuntu-latest`
These will have a `/wordlists` file with all the wordlists in there for you to use them.
## 📜 Wordlists ## 📜 Wordlists
[[TOGGLE]] [[TOGGLE]]