Skip to content

Commit 8a07d05

Browse files
committed
ci: build, push and deploy via GHCR
1 parent b81305b commit 8a07d05

2 files changed

Lines changed: 12 additions & 15 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,15 @@ jobs:
3434
push: true
3535
platforms: linux/amd64,linux/arm64
3636
tags: ghcr.io/mohith1612/invoicely:latest
37+
38+
- name: Deploy to VM
39+
uses: appleboy/ssh-action@v1.0.3
40+
with:
41+
host: ${{ secrets.DEPLOY_HOST }}
42+
username: ${{ secrets.DEPLOY_USER }}
43+
key: ${{ secrets.DEPLOY_SSH_KEY }}
44+
script: |
45+
cd /opt/invoice
46+
docker compose pull
47+
docker compose up -d
48+

app/page.tsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,6 @@ export default function Home() {
2121
</p>
2222
</div>
2323
<div className="flex flex-col gap-4 text-base font-medium sm:flex-row">
24-
<a
25-
className="flex h-12 w-full items-center justify-center gap-2 rounded-full bg-foreground px-5 text-background transition-colors hover:bg-[#383838] dark:hover:bg-[#ccc] md:w-[158px]"
26-
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
27-
target="_blank"
28-
rel="noopener noreferrer"
29-
>
30-
<Image
31-
className="dark:invert"
32-
src="/vercel.svg"
33-
alt="Vercel logomark"
34-
width={16}
35-
height={16}
36-
/>
37-
Deploy Now
38-
</a>
3924
<a
4025
className="flex h-12 w-full items-center justify-center rounded-full border border-solid border-black/[.08] px-5 transition-colors hover:border-transparent hover:bg-black/[.04] dark:border-white/[.145] dark:hover:bg-[#1a1a1a] md:w-[158px]"
4126
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"

0 commit comments

Comments
 (0)