feat: Add docker build (#64)

This commit is contained in:
Krypton
2024-11-09 11:49:37 +01:00
committed by GitHub
parent 1b4abd764f
commit 5b52f990bb
2 changed files with 35 additions and 0 deletions

30
.github/workflows/docker-publish.yml vendored Normal file
View File

@@ -0,0 +1,30 @@
name: Publish Docker Image
on:
release:
types: [published]
jobs:
build-and-push:
runs-on: ubuntu-latest
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
push: true
tags: kkrypt0nn/wordlists:latest

5
Dockerfile vendored Normal file
View File

@@ -0,0 +1,5 @@
FROM alpine:latest
COPY wordlists /wordlists
WORKDIR /wordlists