1
0
Fork 0
mirror of https://github.com/parrazam/radicale-docker.git synced 2024-09-01 15:10:24 +02:00
radicale-docker/.github/workflows/build-tag.yml
dependabot[bot] ba3dfe4710 Bump docker/build-push-action from 5 to 6
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v5...v6)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-20 14:43:37 +02:00

80 lines
2.2 KiB
YAML

name: Build and Publish tag version
on:
push:
tags: [ '*.*.*.*' ]
env:
IMAGE_NAME: ${{ github.repository }}
IMAGE_NAME_WITH_INFCLOUD: parrazam/radicale-with-infcloud
PLATFORMS: linux/amd64,linux/arm64
GH_REPO: ghcr.io
jobs:
build-and-push-docker-image:
name: Build Docker image and push to repositories
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install cosign
uses: sigstore/cosign-installer@main
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
with:
image: tonistiigi/binfmt:latest
platforms: ${{ env.PLATFORMS }}
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Log into ${{ env.GH_REPO }} registry
uses: docker/login-action@v3
with:
registry: ${{ env.GH_REPO }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to DockerHub registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.IMAGE_NAME }}
${{ env.IMAGE_NAME_WITH_INFCLOUD }}
${{ env.GH_REPO }}/${{ env.IMAGE_NAME }}
tags: |
type=match,pattern=\d.\d.\d.\d
labels: |
maintainer=parrazam
org.opencontainers.image.title=Radicale with InfCloud
org.opencontainers.image.description=Radicale with InfCloud interface included
org.opencontainers.image.vendor=ParraSoft
- name: Build image and push to Docker Hub and GitHub Container Registry
id: build-and-push
uses: docker/build-push-action@v6
with:
context: .
build-args: VERSION=${{ github.ref_name }}
platforms: ${{ env.PLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}