Files
freeswitch-docker/.gitea/workflows/build-push.yaml
William P 8a2c3b1d7c
Some checks failed
Build and Push FreeSWITCH Docker Image / docker-build (push) Failing after 1m38s
workflow fix attempt 69
2025-03-19 22:29:18 -04:00

38 lines
1.0 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
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
env:
DOCKER_HOST: "tcp://127.0.0.1:2376"
DOCKER_TLS_CERTDIR: "/certs"
DOCKER_TLS_VERIFY: 1
DOCKER_CERT_PATH: "/certs/client"
- 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 }}