diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml new file mode 100644 index 0000000..da2e419 --- /dev/null +++ b/.github/workflows/docker-publish.yml @@ -0,0 +1,18 @@ +name: Docker Publish + +on: + push: + branches: ["main"] + +jobs: + docker-build: + runs-on: ubuntu-24.04 + env: + REGISTRY: ghcr.io + IMAGE_NAME: ${{ github.repository }} + steps: + - uses: actions/checkout@v4 + - name: Build Docker image + run: docker build -t "${REGISTRY}/${IMAGE_NAME}:main" . + - name: Push Docker image + run: docker push "${REGISTRY}/${IMAGE_NAME}:main"