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

47 lines
1.4 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
container:
image: forge.niblock.tech/containers/alpine:build
steps:
- name: Checkout the NibTech Radical Mirror
uses: https://forge.niblock.tech/actions/checkout@v4
with:
repository: oss/radicale
ref: master
- name: Login to the NibTech Registry
uses: https://forge.niblock.tech/actions/docker-login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
- name: Extract Docker Metadata
id: meta
uses: https://forge.niblock.tech/actions/docker-metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.REGISTRY_IMAGE_NAME }}
- name: Setup Docker Buildx
uses: https://forge.niblock.tech/actions/setup-buildx-action@v3
- name: Build and Publish Latest Container to NibTech Registry
uses: https://forge.niblock.tech/actions/docker-build-push-action@v6
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}