Skip to content

Docker Image CI

Docker Image CI #87

name: Docker Image CI
on:
workflow_dispatch:
schedule:
- cron: "59 23 * * 0"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: |
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USER }}" --password-stdin docker.io
docker build . --file ./Docker/Kali --tag docker.io/${{ secrets.DOCKER_HUB_USER }}/${{ secrets.DOCKER_HUB_REPO }}:latest
docker push docker.io/${{ secrets.DOCKER_HUB_USER }}/${{ secrets.DOCKER_HUB_REPO }}:latest