Skip to content

Update to tideways-daemon 1.8.48 #17

Update to tideways-daemon 1.8.48

Update to tideways-daemon 1.8.48 #17

Workflow file for this run

name: Daemon
on:
push:
branches:
- main
schedule:
- cron: '0 12 * * 3'
permissions:
contents: read
packages: write
id-token: write
attestations: write
env:
organization: tideways
image: daemon
jobs:
docker_image:
name: Push Docker image to ghcr.io
runs-on: ubuntu-latest
steps:
- uses: docker/setup-buildx-action@v3
- uses: docker/setup-qemu-action@v3
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v4
- name: Extract version from Dockerfile
id: extract_version
working-directory: ./${{ env.image }}/
run: echo "version=$(awk '$1 == "ENV" && $2 == "TIDEWAYS_DAEMON_VERSION"{print $3}' Dockerfile)" >> $GITHUB_OUTPUT
- uses: docker/build-push-action@v5
id: build
with:
context: ./${{ env.image }}/
push: true
tags: ghcr.io/${{ env.organization }}/${{ env.image }}:latest,ghcr.io/${{ env.organization }}/${{ env.image }}:${{ steps.extract_version.outputs.version }}
platforms: linux/amd64,linux/arm64
- uses: actions/attest-build-provenance@v1
id: attest
with:
subject-name: ghcr.io/${{ env.organization }}/${{ env.image }}
subject-digest: ${{ steps.build.outputs.digest }}
push-to-registry: true