Files
BOINC-report-bot/.gitea/workflows/publish-images.yml
dan 55cfd73c24
All checks were successful
publish-images / build (push) Successful in 1m3s
Add BOINC Telegram bot, CI, and deploy compose
2026-01-06 09:44:48 +03:00

31 lines
799 B
YAML

name: publish-images
on:
push:
branches:
- main
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login registry
env:
REGISTRY_USER: ${{ vars.REGISTRY_USER }}
REGISTRY_PASSWORD: ${{ vars.REGISTRY_PASSWORD }}
run: |
echo "$REGISTRY_PASSWORD" | docker login cr.danosito.com -u "$REGISTRY_USER" --password-stdin
- name: Build and push images
env:
IMAGE_TAG: ${{ gitea.sha }}
IMAGE_NAME: cr.danosito.com/dan/boinc-report-bot
run: |
set -euo pipefail
docker build -t "$IMAGE_NAME:$IMAGE_TAG" -t "$IMAGE_NAME:latest" .
docker push "$IMAGE_NAME:$IMAGE_TAG"
docker push "$IMAGE_NAME:latest"