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

- Bump Rust dependencies to latest versions in Cargo.lock - Tag Docker
images with both latest and commit SHA - Pass commit SHA as a query
param to deployment webhook - Minor YAML formatting improvements in
GitHub Actions workflow
This commit is contained in:
2025-06-21 23:02:27 +02:00
parent 36b847c3e9
commit 1b0cdd8aae
2 changed files with 564 additions and 404 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 }}?BOTS_MANAGER_SERVER_TAG=${{ github.sha }}

947
Cargo.lock generated

File diff suppressed because it is too large Load Diff