Skip to content
name: Push Heimdall Server to Docker Hub on every merge to master and tag as latest
on:
push:
branches: [master]
jobs:
docker:
runs-on: ubuntu-22.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Checkout the Heimdall Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
context: .
push: true
platforms: linux/amd64
tags: mitre/heimdall2:latest