Add BOINC Telegram bot, CI, and deploy compose
All checks were successful
publish-images / build (push) Successful in 1m3s
All checks were successful
publish-images / build (push) Successful in 1m3s
This commit is contained in:
30
.gitea/workflows/publish-images.yml
Normal file
30
.gitea/workflows/publish-images.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
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"
|
||||
Reference in New Issue
Block a user