This commit is contained in:
skeris 2025-07-23 13:58:05 +03:00
parent f82edeef14
commit 55cbc01cab
2 changed files with 24 additions and 19 deletions

@ -2,25 +2,29 @@ name: Deploy
run-name: ${{ gitea.actor }} build image and push to container registry run-name: ${{ gitea.actor }} build image and push to container registry
on: on:
push: registry_package:
branches: types: [published]
- 'main' #package_name: "gitea.pena/squiz/frontanswerer/main:latest"
jobs: jobs:
CreateImage: # CreateImage:
runs-on: [skeris] # runs-on: [skeris]
uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p # uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p
with: # with:
runner: skeris # runner: skeris
secrets: # secrets:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }} # REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }} # REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
DeployService: DeployService:
if: contains(github.event.package.name, 'main')
runs-on: [frontprod] runs-on: [frontprod]
#needs: CreateImage container:
uses: https://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7 image: gitea.pena/penadevops/container-images/node-compose:main
with: env:
runner: frontprod GITHUB_RUN_NUMBER: "${{ inputs.actionid }}"
actionid: ${{ gitea.run_id }} volumes:
- /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock
steps:
- name: Check out repository code
uses: http://gitea.pena/PenaDevops/actions.git/checkout@v1
- run: compose -f deployments/main/docker-compose.yaml up -d

@ -1,9 +1,10 @@
services: services:
admin_front: admin_front:
restart: unless-stopped restart: unless-stopped
image: gitea.pena/penaside/adminfront/main:1102 image: gitea.pena/penaside/adminfront/main:latest
hostname: admin hostname: admin
ports: ports:
- 10.8.0.131:80:80 - 10.8.0.131:80:80
- 10.8.0.131:443:443 - 10.8.0.131:443:443
tty: true tty: true
pull_policy: always