2023-09-06 20:57:24 +00:00
|
|
|
name: Build and Push Docker image
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2023-09-06 21:09:44 +00:00
|
|
|
docker:
|
2023-09-06 20:57:24 +00:00
|
|
|
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
|
2023-09-06 20:57:24 +00:00
|
|
|
steps:
|
|
|
|
- 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
|
2023-09-16 04:00:54 +00:00
|
|
|
uses: docker/build-push-action@v5
|
2023-09-06 20:57:24 +00:00
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
spcodes/peertube:latest
|
|
|
|
cr.sp-codes.de/sp-codes/peertube:latest
|