ci: Unzip rockyou & cleanup Docker images
This commit is contained in:
20
.github/workflows/docker-publish.yml
vendored
20
.github/workflows/docker-publish.yml
vendored
@@ -1,31 +1,33 @@
|
|||||||
name: Publish Docker Image
|
name: Publish Docker Images
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types: [published]
|
branches:
|
||||||
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
|
name: Build and push Docker images
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [alpine, debian, ubuntu]
|
image: [alpine, debian, ubuntu]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
- 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@v3
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile.${{ matrix.os }}
|
file: ./Dockerfile.${{ matrix.image }}
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: kkrypt0nn/wordlists:${{ matrix.os }}-latest
|
tags: kkrypt0nn/wordlists:${{ matrix.image }}-latest
|
||||||
|
|||||||
6
.github/workflows/update-generated-files.yml
vendored
6
.github/workflows/update-generated-files.yml
vendored
@@ -8,13 +8,15 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_generated_file:
|
update_generated_file:
|
||||||
|
name: Update generated files
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PAT }}
|
token: ${{ secrets.PAT }}
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- name: Make README file
|
- name: Make README file
|
||||||
|
|||||||
6
.github/workflows/update-tlds-list.yml
vendored
6
.github/workflows/update-tlds-list.yml
vendored
@@ -7,13 +7,15 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
update_tlds_list:
|
update_tlds_list:
|
||||||
|
name: Update TLDs list
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.PAT }}
|
token: ${{ secrets.PAT }}
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11"
|
python-version: "3.11"
|
||||||
- name: Install Python packages
|
- name: Install Python packages
|
||||||
|
|||||||
13
Dockerfile.alpine
vendored
13
Dockerfile.alpine
vendored
@@ -1,5 +1,16 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
|
# Copy wordlists
|
||||||
COPY wordlists /wordlists
|
COPY wordlists /wordlists
|
||||||
|
|
||||||
WORKDIR /wordlists
|
# Copy relevant Markdown files
|
||||||
|
COPY NOTICE.md /wordlists/NOTICE.md
|
||||||
|
COPY TERMS_OF_USE.md /wordlists/TERMS_OF_USE.md
|
||||||
|
|
||||||
|
# Unzip rockyou
|
||||||
|
WORKDIR /wordlists/famous
|
||||||
|
RUN apk add --no-cache unzip && \
|
||||||
|
unzip rockyou.zip && rm rockyou.zip
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
RUN rm -rf /tmp/*
|
||||||
15
Dockerfile.debian
vendored
15
Dockerfile.debian
vendored
@@ -1,5 +1,16 @@
|
|||||||
FROM debian:latest
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
|
# Copy wordlists
|
||||||
COPY wordlists /wordlists
|
COPY wordlists /wordlists
|
||||||
|
|
||||||
WORKDIR /wordlists
|
# Copy relevant Markdown files
|
||||||
|
COPY NOTICE.md /wordlists/NOTICE.md
|
||||||
|
COPY TERMS_OF_USE.md /wordlists/TERMS_OF_USE.md
|
||||||
|
|
||||||
|
# Unzip rockyou
|
||||||
|
WORKDIR /wordlists/famous
|
||||||
|
RUN apt-get update && apt-get install -y unzip && \
|
||||||
|
unzip rockyou.zip && rm rockyou.zip
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
13
Dockerfile.ubuntu
vendored
13
Dockerfile.ubuntu
vendored
@@ -1,5 +1,16 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
# Copy wordlists
|
||||||
COPY wordlists /wordlists
|
COPY wordlists /wordlists
|
||||||
|
|
||||||
WORKDIR /wordlists
|
# Copy relevant Markdown files
|
||||||
|
COPY NOTICE.md /wordlists/NOTICE.md
|
||||||
|
COPY TERMS_OF_USE.md /wordlists/TERMS_OF_USE.md
|
||||||
|
|
||||||
|
# Unzip rockyou
|
||||||
|
WORKDIR /wordlists/famous
|
||||||
|
RUN apt-get update && apt-get install -y unzip && \
|
||||||
|
unzip rockyou.zip && rm rockyou.zip
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||||
Reference in New Issue
Block a user