Files
wordlists/.github/workflows/docker-publish.yml
Krypton 2405bc934e feat: Automatically push all Docker images
The following Docker images get pushed:

- `kkrypt0nn/wordlists:alpine-latest`
- `kkrypt0nn/wordlists:debian-latest`
- `kkrypt0nn/wordlists:ubuntu-latest`
2025-03-06 16:29:14 +01:00

33 lines
878 B
YAML
Vendored

name: Publish Docker Image
on:
release:
types: [published]
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [amd64, arm64]
os: [alpine, debian, ubuntu]
steps:
- name: Checkout code
uses: actions/checkout@v3
- 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
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile.${{ matrix.os }}
platforms: linux/${{ matrix.architecture }}
push: true
tags: kkrypt0nn/wordlists:${{ matrix.os }}-latest