From 6a68e9d5f28b4b963eb70d30e52acec8003749c0 Mon Sep 17 00:00:00 2001 From: William P Date: Wed, 19 Mar 2025 15:30:02 -0400 Subject: [PATCH] try gitea actions --- .gitea/workflows/build-push.yaml | 34 ++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .gitea/workflows/build-push.yaml diff --git a/.gitea/workflows/build-push.yaml b/.gitea/workflows/build-push.yaml new file mode 100644 index 0000000..a30ba9f --- /dev/null +++ b/.gitea/workflows/build-push.yaml @@ -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 }} \ No newline at end of file