Skip to content

Bump icalendar from 5.0.13 to 6.0.1 #238

Bump icalendar from 5.0.13 to 6.0.1

Bump icalendar from 5.0.13 to 6.0.1 #238

Workflow file for this run

name: Build Docker Images
env:
DOCKERHUB_TAG: 'docker.io/jandi/toggl-track-companion'
GITHUB_TAG: 'ghcr.io/jan-di/toggl-track-companion'
PLATFORMS: linux/amd64,linux/arm64
on:
push:
branches:
- 'main'
tags:
- 'v*'
pull_request:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
-
name: Docker Metadata
id: docker_meta
uses: docker/metadata-action@v5
with:
images: |
${{ env.DOCKERHUB_TAG }}
${{ env.GITHUB_TAG }}
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
-
name: Login to DockerHub
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Login to GitHub Container Registry
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.docker_meta.outputs.tags }}
labels: ${{ steps.docker_meta.outputs.labels }}
platforms: ${{ env.PLATFORMS }}
cache-from: type=registry,ref=${{ env.GITHUB_TAG }}:main
cache-to: type=inline
build-args: |
APP_VERSION=${{ github.ref_name }}
APP_COMMIT=${{ github.sha }}