try gitea actions
Some checks failed
Build and Push FreeSWITCH Docker Image / docker-build (push) Failing after 1m42s
Some checks failed
Build and Push FreeSWITCH Docker Image / docker-build (push) Failing after 1m42s
This commit is contained in:
34
.gitea/workflows/build-push.yaml
Normal file
34
.gitea/workflows/build-push.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Build and Push FreeSWITCH Docker Image
|
||||
run-name: Build after the commit from ${{ gitea.actor }} in the main repo
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
docker-build:
|
||||
runs-on: ubuntu-latest
|
||||
container: ghcr.io/catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Gitea
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: git.dubyatp.xyz
|
||||
username: williamp
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push container image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: ./Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
git.dubyatp.xyz/williamp/freeswitch:latest
|
||||
git.dubyatp.xyz/williamp/freeswitch:${{ gitea.sha }}
|
Reference in New Issue
Block a user