Files
freeswitch-docker/.gitea/workflows/build-push.yaml
William P b8fe97fc88
All checks were successful
Build and Push FreeSWITCH Docker Image / docker-build (push) Successful in 8m21s
would prob help if i put it after checking out the repo.. kekw
2025-03-20 10:14:45 -04:00

40 lines
1.1 KiB
YAML

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:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set outputs
id: vars
run: |
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- 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:${{steps.vars.outputs.sha_short }}