From 9fbcc074269f379281a7df9be138c04dc7cea4b4 Mon Sep 17 00:00:00 2001 From: Anibal Angulo Date: Wed, 26 Nov 2025 13:23:52 -0600 Subject: [PATCH] add github actions --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..79d968d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: Release + +on: + push: + tags: + - "v*" + +env: + REGISTRY: gitea.ia-innovacion.work + REGISTRY_PATH: innovacion/playground + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Log in to Gitea Registry + uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_PASSWORD }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + file: mods/qfactory/Dockerfile + push: true + tags: | + ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}:latest + ${{ env.REGISTRY }}/${{ env.REGISTRY_PATH }}:${{ github.sha }}