diff --git a/.gitea/workflows/deployProd.yml b/.gitea/workflows/deployProd.yml new file mode 100644 index 0000000..04e6889 --- /dev/null +++ b/.gitea/workflows/deployProd.yml @@ -0,0 +1,23 @@ +name: Deploy +run-name: ${{ gitea.actor }} build image and push to container registry + +on: + push: + branches: + - 'main' + +jobs: + CreateImage: + runs-on: [hubstaging] + uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p + with: + runner: hubstaging + secrets: + REGISTRY_USER: ${{ secrets.REGISTRY_USER }} + REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} + DeployService: + runs-on: [hubprod] + needs: CreateImage + uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7 + with: + runner: hubprod diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deployStging.yml similarity index 97% rename from .gitea/workflows/deploy.yml rename to .gitea/workflows/deployStging.yml index 5d17c60..253c2d4 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deployStging.yml @@ -4,7 +4,6 @@ run-name: ${{ gitea.actor }} build image and push to container registry on: push: branches: - - 'main' - 'staging' jobs: diff --git a/deployments/main/docker-compose.yaml b/deployments/main/docker-compose.yaml new file mode 100644 index 0000000..028e01d --- /dev/null +++ b/deployments/main/docker-compose.yaml @@ -0,0 +1,8 @@ +services: + templategenworker: + restart: unless-stopped + image: gitea.pena/penaside/docxtemplaterworker/main:$GITHUB_RUN_NUMBER + tty: true + environment: + MONGO_URL: mongodb://templategen:54143ffdd9304865586e5cf1@localhost:27017/?authSource=templategen + PENADISK_URL: http://localhost:8011/