ACtualizando deploy
All checks were successful
CD for startPage / build (push) Successful in 1m27s

This commit is contained in:
2024-03-09 01:35:05 -03:00
parent 2f3f30676e
commit f45613b605
2 changed files with 16 additions and 16 deletions

View File

@@ -2,7 +2,8 @@ name: CD for startPage
on:
push:
branches: [main]
tags:
- '*'
jobs:
build:
@@ -21,18 +22,4 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: git.skrd.fun/skrd/start.skrd.fun:latest
deploy:
needs: build
runs-on: ubuntu-latest
steps:
- name: Deploy
run: |
echo "${{ secrets.SERVER_PRIVATE_KEY }}" > private_key && chmod 600 private_key
ssh -o StrictHostKeyChecking=no -i private_key ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} -p ${{ secrets.SSH_PORT || 22 }} '
docker compose pull
docker compose up -d
'
tags: git.skrd.fun/skrd/start.skrd.fun:${{ github.ref_name }}

13
compose.yml Normal file
View File

@@ -0,0 +1,13 @@
version: "3"
services:
blog:
image: "git.skrd.fun/skrd/start.skrd.fun:1.0"
restart: unless-stopped
networks:
- proxy_network
networks:
proxy_network:
name: proxy_network
external: true