peertube/.forgejo/workflows/docker.yml

35 lines
931 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:30:28 +00:00
runs-on: ubuntu-latest
steps:
2023-09-06 21:29:23 +00:00
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
2023-09-06 21:22:10 +00:00
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to cr.sp-codes.de
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@v4
with:
push: true
tags: |
spcodes/peertube:latest
cr.sp-codes.de/sp-codes/peertube:latest