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:
|
||||
release:
|
||||
types: [published]
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
name: Build and push Docker images
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [alpine, debian, ubuntu]
|
||||
image: [alpine, debian, ubuntu]
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
uses: actions/checkout@v4
|
||||
- name: Log in to Docker Hub
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
username: ${{ secrets.DOCKER_USERNAME }}
|
||||
password: ${{ secrets.DOCKER_TOKEN }}
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v5
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile.${{ matrix.os }}
|
||||
file: ./Dockerfile.${{ matrix.image }}
|
||||
platforms: linux/amd64,linux/arm64
|
||||
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:
|
||||
update_generated_file:
|
||||
name: Update generated files
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.PAT }}
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- 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:
|
||||
update_tlds_list:
|
||||
name: Update TLDs list
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.PAT }}
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v4
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
- name: Install Python packages
|
||||
|
||||
13
Dockerfile.alpine
vendored
13
Dockerfile.alpine
vendored
@@ -1,5 +1,16 @@
|
||||
FROM alpine:latest
|
||||
|
||||
# Copy 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
|
||||
|
||||
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
|
||||
|
||||
# Copy 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