docker-radicale/.github/workflows/docker.yml

37 lines
953 B
YAML
Raw Normal View History

2021-05-05 10:27:48 +00:00
name: ci
on:
workflow_dispatch:
push:
tags:
2024-08-09 12:53:24 +00:00
- 'v*.*.*'
2021-05-05 10:27:48 +00:00
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
2024-08-09 12:53:24 +00:00
uses: docker/setup-qemu-action@v3
2021-05-05 10:27:48 +00:00
- name: Set up Docker Buildx
2024-08-09 12:53:24 +00:00
uses: docker/setup-buildx-action@v3
2021-05-05 10:27:48 +00:00
- name: Docker Labels
id: meta
2024-08-09 12:53:24 +00:00
uses: docker/metadata-action@v5
2021-05-05 10:27:48 +00:00
with:
images: cupcakearmy/radicale
tags: |
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
- name: Login to DockerHub
2024-08-09 12:53:24 +00:00
uses: docker/login-action@v3
2021-05-05 10:27:48 +00:00
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
2022-06-27 08:03:40 +00:00
uses: docker/build-push-action@v3
2021-05-05 10:27:48 +00:00
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}