2021-05-05 10:27:48 +00:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- "v*.*.*"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docker:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up QEMU
|
2022-06-27 08:03:40 +00:00
|
|
|
uses: docker/setup-qemu-action@v2
|
2021-05-05 10:27:48 +00:00
|
|
|
- name: Set up Docker Buildx
|
2022-06-27 08:03:40 +00:00
|
|
|
uses: docker/setup-buildx-action@v2
|
2021-05-05 10:27:48 +00:00
|
|
|
- name: Docker Labels
|
|
|
|
id: meta
|
2022-06-27 08:03:40 +00:00
|
|
|
uses: docker/metadata-action@v4
|
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
|
2022-06-27 08:03:40 +00:00
|
|
|
uses: docker/login-action@v2
|
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 }}
|