oss-container-builds/.forgejo/workflows/radicale-docker.yml

41 lines
1.1 KiB
YAML

name: Build and Publish Radicale Docker
on:
workflow_dispatch:
env:
REGISTRY: forge.niblock.tech
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_TOKEN }}
REGISTRY_IMAGE_NAME: "radicale"
jobs:
release:
name: Build
runs-on: docker
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
repository: https://forge.niblock.tech/oss/radicale
- name: Login to the GitHub Container Registry
uses: actions/docker-login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
- name: Extract repository metadata (tags, labels)
id: meta
uses: actions/docker-metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}
- name: Build and publish latest
uses: actions/docker-build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}