Skip to content

testando algo no redeploy #12

testando algo no redeploy

testando algo no redeploy #12

Workflow file for this run

name: Continuous Deployment
on:
workflow_dispatch:
push:
branches:
- production
paths-ignore:
- .gitignore
- README.md
- start-database.sh
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: executing deploy via ssh
uses: appleboy/[email protected]
with:
host: ${{secrets.HOST}}
username: ${{secrets.USERNAME}}
password: ${{secrets.PASS}}
script: |
UNSTAGGED_IMAGE_ID=$(docker images --filter=reference=site-struct-2024-web:latest --format "{{.ID}}")
cd docker_compose_struct/
git pull
cd site-struct-2024/
docker compose build web
docker compose up -d
docker rmi $UNSTAGGED_IMAGE_ID