Skip to content

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main # Trigger on pushes to the main branch
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
# Checkout the code
- name: Checkout repository
uses: actions/checkout@v3
# Log in to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Build the Docker image
- name: Build Docker image
run: docker build -t your-dockerhub-username/cyberchef:latest .
# Push the Docker image
- name: Push Docker image
run: docker push your-dockerhub-username/cyberchef:latest