badges for main and dev branches, latest-dev tag for dev builds

This commit is contained in:
2025-03-17 09:55:25 +03:00
parent 703bfb1b38
commit 76c7bcf2c6
2 changed files with 9 additions and 1 deletions

View File

@@ -43,3 +43,10 @@ jobs:
docker pull $IMAGE_NAME:${{ github.ref_name }}-${{ steps.vars.outputs.short_sha }}
docker tag $IMAGE_NAME:${{ github.ref_name }}-${{ steps.vars.outputs.short_sha }} $IMAGE_NAME:latest
docker push $IMAGE_NAME:latest
- name: Set the latest tag for the dev branch
if: github.ref == 'refs/heads/dev'
run: |
docker pull $IMAGE_NAME:${{ github.ref_name }}-${{ steps.vars.outputs.short_sha }}
docker tag $IMAGE_NAME:${{ github.ref_name }}-${{ steps.vars.outputs.short_sha }} $IMAGE_NAME:latest-dev
docker push $IMAGE_NAME:latest-dev

View File

@@ -78,7 +78,8 @@ MONGO_URI='mongodb://localhost:27017/' # Адрес сервера MongoDB
Запустите бота (`python ./MusicBot/main.py`).
## Запуск в Docker ![Docker Image CI](https://github.com/deadcxap/YandexMusicDiscordBot/workflows/Docker%20Image%20CI/badge.svg)
## Запуск в Docker ![Main Build](https://img.shields.io/github/actions/workflow/status/deadcxap/YandexMusicDiscordBot/docker-image.yml?branch=main&label=main) ![Dev Build](https://img.shields.io/github/actions/workflow/status/deadcxap/YandexMusicDiscordBot/docker-image.yml?branch=dev&label=dev)
Возможен запуск как из командной строки, так и с помощью docker-compose.