add docker action

This commit is contained in:
Bruce Röttgers 2025-04-26 23:05:09 +02:00
parent ec408ca345
commit 6f1b9cec19

29
.github/workflows/build-image.yaml vendored Normal file
View File

@ -0,0 +1,29 @@
name: Build Docker Image
on:
push:
tags:
- "docker/*"
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/bcye/structured-wikivoyage-exports:latest