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

View File

@@ -8,25 +8,25 @@ on:
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
platforms: linux/amd64,linux/arm64
file: ./Dockerfile.${{ matrix.os }}
platforms: linux/${{ matrix.architecture }}
push: true
tags: kkrypt0nn/wordlists:latest
tags: kkrypt0nn/wordlists:${{ matrix.os }}-latest