xdeploy by push to registry
All checks were successful
Deploy / DeployService (push) Successful in 28s

This commit is contained in:
skeris 2025-01-28 15:43:03 +03:00
parent 947431127a
commit fa19bc502e
3 changed files with 27 additions and 13 deletions

@ -8,17 +8,19 @@ on:
- 'staging' - 'staging'
jobs: jobs:
CreateImage:
runs-on: [apimetrics]
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.8.-
with:
runner: apimetrics
secrets:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
DeployService: DeployService:
runs-on: [frontstaging] runs-on: [frontstaging]
needs: CreateImage container:
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.6-p image: gitea.pena:3000/penadevops/container-images/node-compose:main
with: env:
runner: frontstaging GITHUB_RUN_NUMBER: "${{ inputs.actionid }}"
volumes:
- /run/user/1000/podman/podman.sock:/run/user/1000/podman/podman.sock
steps:
- name: Check out repository code
uses: http://gitea.pena:3000/PenaDevops/actions.git/checkout@v1
- run: printenv
- run: GITHUB_RUN_NUMBER=${{ gitea.run_id }} compose -f deployments/${{ gitea.ref_name }}/docker-compose.yaml up -d
# uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.6-p
# with:
# runner: frontstaging

12
Taskfile.yml Normal file

@ -0,0 +1,12 @@
version: "3"
tasks:
build-image:
cmds:
- podman build -t gitea.pena/penaside/adminfront:$(git rev-parse --abbrev-ref HEAD).$(git rev-parse HEAD) .
push:
cmds:
- task: build-image
- cmd: podman login gitea.pena
- cmd: podman push gitea.pena/penaside/adminfront:$(git rev-parse --abbrev-ref HEAD).$(git rev-parse HEAD)

@ -3,7 +3,7 @@ services:
admin_front: admin_front:
container_name: admin_front container_name: admin_front
restart: unless-stopped restart: unless-stopped
image: gitea.pena:3000/penaside/adminfront/staging:$GITHUB_RUN_NUMBER image: gitea.pena:3000/penaside/adminfront:staging.a6f3ab6136f69ad770aa31b2a67500e196e9ba4b
ports: ports:
- 10.7.0.18:80:80 - 10.7.0.18:80:80
- 10.7.0.18:443:443 - 10.7.0.18:443:443