Skip to content

Add mdbook-alerts to dockerfile #3

Add mdbook-alerts to dockerfile

Add mdbook-alerts to dockerfile #3

---
name: Build and Push Docker Image
on:
push:
branches: [main]
paths:
- 'Dockerfile'
- '.github/workflows/docker-container.yml'
schedule:
- cron: '0 0 * * 0' # Weekly on Sunday
workflow_dispatch:
permissions:
contents: read
packages: write
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:latest