peertube/.forgejo/workflows/docker.yml

33 lines
846 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
2025-03-09 20:25:46 +01:00
# container:
# image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Login to Docker Hub
2025-03-09 21:40:30 +01:00
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to cr.sp-codes.de
2025-03-09 21:40:30 +01:00
uses: docker/login-action@v2
with:
registry: cr.sp-codes.de
username: ${{ secrets.CR_USERNAME }}
password: ${{ secrets.CR_TOKEN }}
- name: Build and push
2025-03-09 21:40:30 +01:00
uses: docker/build-push-action@v4
with:
push: true
tags: |
spcodes/peertube:latest
cr.sp-codes.de/sp-codes/peertube:latest