Update dependencies and improve Docker image build workflow
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled

- Update Rust dependencies in Cargo.lock to latest versions - Tag Docker
images with both `latest` and commit SHA - Pass commit SHA as a query
parameter to deployment webhook - Refactor GitHub Actions workflow for
cleaner YAML structure
This commit is contained in:
2025-06-21 22:41:15 +02:00
parent 69528f371e
commit fe8652c7d8
2 changed files with 479 additions and 423 deletions

View File

@@ -3,18 +3,16 @@ name: Build docker image
on: on:
push: push:
branches: branches:
- 'main' - "main"
jobs: jobs:
Build-Docker-Image: Build-Docker-Image:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- - name: Checkout
name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- - name: Set up Docker Buildx
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3
- id: repository_name - id: repository_name
@@ -22,16 +20,14 @@ jobs:
with: with:
string: ${{ github.repository }} string: ${{ github.repository }}
- - name: Login to ghcr.io
name: Login to ghcr.io
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
- - name: Build and push
name: Build and push
id: docker_build id: docker_build
uses: docker/build-push-action@v6 uses: docker/build-push-action@v6
env: env:
@@ -39,12 +35,11 @@ jobs:
with: with:
push: true push: true
platforms: linux/amd64 platforms: linux/amd64
tags: ghcr.io/${{ env.IMAGE }}:latest tags: ghcr.io/${{ env.IMAGE }}:latest,ghcr.io/${{ env.IMAGE }}:${{ github.sha }}
context: . context: .
file: ./docker/build.dockerfile file: ./docker/build.dockerfile
- - name: Invoke deployment hook
name: Invoke deployment hook
uses: joelwmale/webhook-action@master uses: joelwmale/webhook-action@master
with: with:
url: ${{ secrets.WEBHOOK_URL }} url: ${{ secrets.WEBHOOK_URL }}?LIBRARY_UPDATER_TAG=${{ github.sha }}

881
Cargo.lock generated

File diff suppressed because it is too large Load Diff