From 7f13a2fde95f1c9dd5d6b35c80e1f627df2e0065 Mon Sep 17 00:00:00 2001 From: cupcakearmy Date: Wed, 5 May 2021 12:27:48 +0200 Subject: [PATCH] automated releases --- .github/FUNDING.yml | 12 +++++++++++ .github/workflows/docker.yml | 39 ++++++++++++++++++++++++++++++++++++ CHANGELOG.md | 14 +++++++++++++ README.md | 3 ++- 4 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/docker.yml create mode 100644 CHANGELOG.md diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..0c44487 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,12 @@ +# These are supported funding model platforms + +github: cupcakearmy +patreon: # Replace with a single Patreon username +open_collective: # Replace with a single Open Collective username +ko_fi: # Replace with a single Ko-fi username +tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel +community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry +liberapay: # Replace with a single Liberapay username +issuehunt: # Replace with a single IssueHunt username +otechie: # Replace with a single Otechie username +custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 0000000..a64e51c --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,39 @@ +name: ci + +on: + workflow_dispatch: + push: + tags: + - "v*.*.*" + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Docker Labels + id: meta + uses: crazy-max/ghaction-docker-meta@v2 + with: + images: cupcakearmy/radicale + tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + - name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + id: docker_build + uses: docker/build-push-action@v2 + with: + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ steps.meta.outputs.tags }} + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..2342f47 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,14 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [1.0.0] - 2021-05-05 + +### Added + +- automated build & tagging +- arm images +- pinned Radicale to major version diff --git a/README.md b/README.md index aefe103..ea7c8d0 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,8 @@ version: '3.7' services: app: - image: cupcakearmy/radicale + image: cupcakearmy/radicale:1 + restart: unless-stopped env_file: .env volumes: - ./data:/data