mirror of
https://github.com/flibusta-apps/telegram_files_cache_server.git
synced 2025-12-06 06:35:38 +01:00
Bumps [ASzc/change-string-case-action](https://github.com/aszc/change-string-case-action) from 5 to 6. - [Release notes](https://github.com/aszc/change-string-case-action/releases) - [Commits](https://github.com/aszc/change-string-case-action/compare/v5...v6) --- updated-dependencies: - dependency-name: ASzc/change-string-case-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: Build docker image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
|
|
jobs:
|
|
Build-Docker-Image:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
-
|
|
name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
-
|
|
name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- id: repository_name
|
|
uses: ASzc/change-string-case-action@v6
|
|
with:
|
|
string: ${{ github.repository }}
|
|
|
|
-
|
|
name: Login to ghcr.io
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
-
|
|
name: Build and push
|
|
id: docker_build
|
|
uses: docker/build-push-action@v5
|
|
env:
|
|
IMAGE: ${{ steps.repository_name.outputs.lowercase }}
|
|
with:
|
|
push: true
|
|
platforms: linux/amd64
|
|
tags: ghcr.io/${{ env.IMAGE }}:latest
|
|
context: .
|
|
file: ./docker/production.dockerfile
|
|
|
|
-
|
|
name: Invoke deployment hook
|
|
uses: joelwmale/webhook-action@master
|
|
with:
|
|
url: ${{ secrets.WEBHOOK_URL }}
|