peertube/.forgejo/workflows/docker.yml

31 lines
777 B
YAML
Raw Normal View History

name: Build and Push Docker image
on:
push:
branches:
- main
jobs:
docker:
name: Build and Push Docker image
2025-03-09 20:27:18 +01:00
runs-on: docker
steps:
- name: Login to Docker Hub
2025-03-11 23:18:00 +01:00
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to cr.sp-codes.de
2025-03-11 23:18:00 +01:00
uses: docker/login-action@v3
with:
registry: cr.sp-codes.de
username: ${{ secrets.CR_USERNAME }}
password: ${{ secrets.CR_TOKEN }}
- name: Build and push
2025-03-11 23:18:00 +01:00
uses: docker/build-push-action@v6
with:
push: true
tags: |
spcodes/peertube:latest
cr.sp-codes.de/sp-codes/peertube:latest