Add GitHub Actions workflow for Docker Hub auto-build

This commit is contained in:
Maurice
2026-03-19 13:35:11 +01:00
parent e8acbbd129
commit 9a8c24cf7b

22
.github/workflows/docker.yml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: Build & Push Docker Image
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- uses: docker/build-push-action@v6
with:
context: .
push: true
tags: mauriceboe/nomad:latest