main deployments
This commit is contained in:
parent
8c6b753c03
commit
e9e718cb62
23
.gitea/workflows/deployProd.yml
Normal file
23
.gitea/workflows/deployProd.yml
Normal file
@ -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
|
@ -4,7 +4,6 @@ run-name: ${{ gitea.actor }} build image and push to container registry
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
- 'staging'
|
||||
|
||||
jobs:
|
13
deployments/main/docker-compose.yaml
Normal file
13
deployments/main/docker-compose.yaml
Normal file
@ -0,0 +1,13 @@
|
||||
services:
|
||||
penadisk:
|
||||
restart: unless-stopped
|
||||
tty: true
|
||||
image: gitea.pena/penaside/penadisk/main:$GITHUB_RUN_NUMBER
|
||||
ports:
|
||||
- 10.8.0.226:8011:80
|
||||
environment:
|
||||
YA_KEY_ID: aje4u394kp05ijl74ce3
|
||||
YA_SERVICE_ACC_ID: ajelmc4tjbct675tjdh9
|
||||
MINIO_ENDPOINT: storage.yandexcloud.net
|
||||
MINIO_ACCESS_KEY_ID: YCAJEOcqqTHpiwL4qFwLfHPNA
|
||||
MINIO_SECRET_KEY: YCNIAIat0XqdDzycWsYKX3OU7mPor6S0WmMoG4Ry
|
Loading…
Reference in New Issue
Block a user