update deploy
All checks were successful
Deploy / DeployService (push) Has been skipped

This commit is contained in:
Nastya 2025-08-07 01:28:49 +03:00
parent 84f1011de0
commit d257b25e68
3 changed files with 21 additions and 14 deletions

@ -7,20 +7,26 @@ on:
- 'staging' - 'staging'
jobs: jobs:
CreateImage: # CreateImage:
runs-on: [skeris] # runs-on: [skeris]
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/build-image.yml@v1.1.6-p # uses: http://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, 'staging')
runs-on: [frontstaging] runs-on: [frontstaging]
needs: CreateImage container:
uses: http://gitea.pena/PenaDevops/actions.git/.gitea/workflows/deploy.yml@v1.1.4-p7 image: gitea.pena:3000/penadevops/container-images/node-compose:main
with: env:
runner: frontstaging 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:3000/PenaDevops/actions.git/checkout@v1
- run: compose -f deployments/staging/docker-compose.yaml up -d

@ -2,6 +2,6 @@ services:
squiz: squiz:
container_name: squiz container_name: squiz
restart: unless-stopped restart: unless-stopped
image: gitea.pena/squiz/frontpanel/staging:$GITHUB_RUN_NUMBER image: gitea.pena/squiz/frontpanel/staging:latest
hostname: squiz hostname: squiz
tty: true tty: true

@ -69,6 +69,7 @@
"test": "craco test", "test": "craco test",
"eject": "craco eject", "eject": "craco eject",
"code:format": "prettier --write --ignore-unknown", "code:format": "prettier --write --ignore-unknown",
"deploy": "docker login gitea.pena && docker build -t gitea.pena/squiz/frontanswerer/$(git branch --show-current):latest . && docker push gitea.pena/squiz/frontanswerer/$(git branch --show-current):latest",
"prepare": "husky install", "prepare": "husky install",
"cypress:open": "cypress open", "cypress:open": "cypress open",
"cypress:run": "cypress run" "cypress:run": "cypress run"