Files
wordlists/.github/workflows/docker-publish.yml
renovate[bot] 36b2f0ac0f chore(deps): update actions/checkout action to v5 (#77)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-04 21:30:16 +02:00

36 lines
1.1 KiB
YAML
Vendored

name: Publish Docker Images
on:
push:
branches:
- main
paths:
- "wordlists/**"
workflow_dispatch:
jobs:
build-and-push:
name: Build and push Docker images
runs-on: ubuntu-latest
strategy:
matrix:
image: [alpine, debian, ubuntu]
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5
- name: Log in to Docker Hub
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3
- name: Build and push Docker image
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6
with:
context: .
file: ./Dockerfile.${{ matrix.image }}
platforms: linux/amd64,linux/arm64
push: true
tags: kkrypt0nn/wordlists:${{ matrix.image }}-latest