peertube/.forgejo/workflows/docker.yml

33 lines
844 B
YAML
Raw Normal View History

name: Build and Push Docker image
on:
push:
branches:
- main
jobs:
docker:
name: Build and Push Docker image
2023-09-06 21:46:16 +00:00
runs-on: docker
2023-09-06 22:19:17 +00:00
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Login to Docker Hub
2023-10-06 10:21:23 +00:00
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to cr.sp-codes.de
2023-09-29 15:15:56 +00:00
uses: docker/login-action@v2
with:
registry: cr.sp-codes.de
username: ${{ secrets.CR_USERNAME }}
password: ${{ secrets.CR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: |
spcodes/peertube:latest
cr.sp-codes.de/sp-codes/peertube:latest