mirror of
https://github.com/GothenburgBitFactory/task-timewarrior-hook.git
synced 2025-06-26 10:54:27 +02:00
![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 6.4.0 to 6.5.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v6.4.0...v6.5.0) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
78 lines
2.6 KiB
YAML
78 lines
2.6 KiB
YAML
name: Update Timewarrior in Docker images
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
release:
|
|
type: choice
|
|
description: Timewarrior release
|
|
options:
|
|
- develop
|
|
- stable
|
|
schedule:
|
|
- cron: 0 2 * * *
|
|
|
|
env:
|
|
REGISTRY: "ghcr.io"
|
|
RELEASE: ${{ github.event.inputs.release || 'develop' }}
|
|
|
|
jobs:
|
|
build-and-push-docker-images:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
packages: write
|
|
id-token: write
|
|
|
|
steps:
|
|
- name: Create lowercase repository name
|
|
run: |
|
|
GHCR_REPOSITORY="${{ github.repository_owner }}"
|
|
echo "REPOSITORY=${GHCR_REPOSITORY,,}" >> ${GITHUB_ENV}
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install cosign
|
|
uses: sigstore/cosign-installer@v3.5.0
|
|
|
|
- name: Log into registry ${{ env.REGISTRY }}
|
|
uses: docker/login-action@v3.3.0
|
|
with:
|
|
registry: ${{ env.REGISTRY }}
|
|
username: ${{ github.repository_owner }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Build and push Taskwarrior [develop]/Timewarrior [${{ env.RELEASE }}] Docker image
|
|
id: build-and-push-develop
|
|
uses: docker/build-push-action@v6.5.0
|
|
with:
|
|
context: .
|
|
file: "./test/docker/task-timew.dockerfile"
|
|
push: true
|
|
build-args: |
|
|
TASK_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task:develop
|
|
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/timew:${{ env.RELEASE }}
|
|
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew:develop-${{ env.RELEASE }}
|
|
|
|
- name: Sign the published Docker image
|
|
env:
|
|
COSIGN_EXPERIMENTAL: "true"
|
|
run: cosign sign ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew@${{ steps.build-and-push-develop.outputs.digest }}
|
|
|
|
- name: Build and push Taskwarrior [stable]/Timewarrior [${{ env.RELEASE }}] Docker image
|
|
id: build-and-push-stable
|
|
uses: docker/build-push-action@v6.5.0
|
|
with:
|
|
context: .
|
|
file: "./test/docker/task-timew.dockerfile"
|
|
push: true
|
|
build-args: |
|
|
TASK_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task:stable
|
|
TIMEW_IMAGE=${{ env.REGISTRY }}/${{ env.REPOSITORY }}/timew:${{ env.RELEASE }}
|
|
tags: ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew:stable-${{ env.RELEASE }}
|
|
|
|
- name: Sign the published Docker image
|
|
env:
|
|
COSIGN_EXPERIMENTAL: "true"
|
|
run: cosign sign ${{ env.REGISTRY }}/${{ env.REPOSITORY }}/task-timew@${{ steps.build-and-push-stable.outputs.digest }}
|