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
|
2023-10-06 10:21:23 +00:00
|
|
|
uses: docker/login-action@v2
|
2023-09-06 20:57:24 +00:00
|
|
|
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
|
2023-09-06 20:57:24 +00:00
|
|
|
with:
|
|
|
|
registry: cr.sp-codes.de
|
|
|
|
username: ${{ secrets.CR_USERNAME }}
|
|
|
|
password: ${{ secrets.CR_TOKEN }}
|
|
|
|
- name: Build and push
|
2024-11-19 04:00:28 +00:00
|
|
|
uses: docker/build-push-action@v6
|
2023-09-06 20:57:24 +00:00
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
tags: |
|
|
|
|
spcodes/peertube:latest
|
|
|
|
cr.sp-codes.de/sp-codes/peertube:latest
|