add github actions

This commit is contained in:
Anibal Angulo
2025-11-26 13:23:52 -06:00
parent ac4ec9e77f
commit 9fbcc07426

31
.github/workflows/release.yml vendored Normal file
View File

@@ -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 }}