migrated to actions
This commit is contained in:
parent
e163b63599
commit
5f4429946e
3 changed files with 38 additions and 36 deletions
35
.forgejo/workflows/docker.yml
Normal file
35
.forgejo/workflows/docker.yml
Normal file
|
@ -0,0 +1,35 @@
|
|||
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@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:
|
||||
platforms: linux/amd64,linux/arm64/v8
|
||||
push: true
|
||||
tags: |
|
||||
spcodes/coturn:4.6.2
|
||||
spcodes/coturn:latest
|
||||
cr.sp-codes.de/sp-codes/coturn:4.6.2
|
||||
cr.sp-codes.de/sp-codes/coturn:latest
|
Reference in a new issue