Compare commits

5 Commits

Author SHA1 Message Date
ksan 0574d08d57 one more
CI/CD / build (push) Successful in 11s
CI/CD / deploy (push) Successful in 9s
2026-06-01 13:22:49 +02:00
ksan 7ce949852f asd
CI/CD / build (push) Successful in 10s
CI/CD / deploy (push) Successful in 10s
2026-06-01 13:21:11 +02:00
ksan bb98b8272f fixed formating
CI/CD / build (push) Successful in 12s
CI/CD / deploy (push) Successful in 13s
2026-05-31 14:47:41 +02:00
ksan ee6889d705 testing change
CI/CD / build (push) Successful in 18s
CI/CD / deploy (push) Successful in 13s
2026-05-31 14:39:03 +02:00
ksan 71ff35c7a1 used github config and i guess it doesn't work with gitea?
CI/CD / deploy (push) Successful in 19s
CI/CD / build (push) Successful in 12s
2026-05-31 14:34:13 +02:00
2 changed files with 24 additions and 15 deletions
+9 -9
View File
@@ -38,12 +38,12 @@ jobs:
docker push git.${{ secrets.DOMAIN }}/${{ secrets.REGISTRY_USER }}/testapp:latest
- name: Deploy to VPS
uses: appleboy/ssh-action@v1
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd ~/programs/testapp
docker compose pull
docker compose up -d --remove-orphans
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/key
chmod 600 ~/.ssh/key
ssh-keyscan -H ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
ssh -i ~/.ssh/key \
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} \
"cd ~/programs/testapp && docker compose pull && docker compose up -d"
+15 -6
View File
@@ -1,11 +1,20 @@
function App() {
return (
<div style={{ display: 'flex', justifyContent: 'center', alignItems: 'center', height: '100vh' }}>
<h1>Build wokrs when pushing to dev.</h1>
<h1>Now time to try pushing to main and deploy</h1>
<div
style={{
display: 'flex',
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
height: '100vh',
}}
>
<h1>Build works when pushing to dev.</h1>
<h1>Now time to try pushing to main and deploy.</h1>
<h2>Okay, everything works just fine.</h2>
<h3> one more</h3>
</div>
)
);
}
export default App
export default App;