Skip to content

Deploy Docker Image #1413

Deploy Docker Image

Deploy Docker Image #1413

Workflow file for this run

---
name: Deploy Docker Image
on:
schedule:
- cron: '0 23 * * *' # daily at 23:00
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
environment: release
steps:
- uses: actions/[email protected]
- name: Set up QEMU
uses: docker/[email protected]
- name: Set up Docker Buildx
id: buildx
uses: docker/[email protected]
- name: Docker meta - base
id: meta_base
uses: docker/[email protected]
with:
images: |
artis3n/kali
ghcr.io/artis3n/kali
flavor: |
latest=auto
prefix=
suffix=-no-wordlists,onlatest=true
tags: |
type=schedule
type=edge,branch=main
type=raw,value=latest
- name: Docker meta
id: meta
uses: docker/[email protected]
with:
images: |
artis3n/kali
ghcr.io/artis3n/kali
tags: |
type=schedule
type=edge,branch=main
type=raw,value=latest
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push
uses: docker/[email protected]
with:
target: base
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta_base.outputs.tags }}
labels: ${{ steps.meta_base.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and Push
uses: docker/[email protected]
with:
target: wordlists
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max