peertube/.forgejo/workflows/docker.yml
Samuel Philipp 366e6a4f30
Some checks failed
Build and Push Docker image / Build and Push Docker image (push) Failing after 3s
Merge pull request 'Update docker/build-push-action action to v5' (#32) from renovate/docker-build-push-action-5.x into main
Reviewed-on: #32
2023-09-29 14:57:13 +00:00

32 lines
844 B
YAML

name: Build and Push Docker image
on:
push:
branches:
- main
jobs:
docker:
name: Build and Push Docker image
runs-on: docker
container:
image: ghcr.io/catthehacker/ubuntu:act-latest
steps:
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to cr.sp-codes.de
uses: docker/login-action@v3
with:
registry: cr.sp-codes.de
username: ${{ secrets.CR_USERNAME }}
password: ${{ secrets.CR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
push: true
tags: |
spcodes/peertube:latest
cr.sp-codes.de/sp-codes/peertube:latest