Init repo2
Build and Deploy / deploy (push) Failing after 1m1s

This commit is contained in:
Dmitry
2026-05-18 13:48:20 +03:00
parent 33880f5eae
commit b163e36b51
17 changed files with 358 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
name: Build and Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Login to registry
run: |
echo "${{ secrets.GIT_PASS }}" | \
docker login git.ada-dev.ru -u ${{ secrets.GIT_USER }} --password-stdin
- name: Build and push
run: |
docker build -t git.ada-dev.ru/${{ gitea.repository }}:latest .
docker push git.ada-dev.ru/${{ gitea.repository }}:latest
- name: Deploy container
run: |
docker stop ada-dev-ru 2>/dev/null || true
docker rm ada-dev-ru 2>/dev/null || true
docker run -d \
--name ada-dev-ru \
--restart unless-stopped \
-p 8081:80 \
git.ada-dev.ru/${{ gitea.repository }}:latest