Skip to content

Commit 8b9c26b

Browse files
committed
chore(workflow): try add docker build in workflow
1 parent 7c9e621 commit 8b9c26b

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,13 @@ jobs:
3939
4040
while [ \$RETRY_COUNT -lt \$MAX_RETRIES ]; do
4141
if git pull origin main; then
42-
break # pull succesful exit
42+
echo "Git pull successful, proceeding with Docker commands."
43+
docker stop blog || true
44+
docker rm blog || true
45+
docker rmi nextjs || true
46+
docker build -t nextjs .
47+
docker-compose up -d
48+
break # pull successful exit
4349
else
4450
echo "Git pull failed, retrying (\$((RETRY_COUNT + 1)) of \$MAX_RETRIES)..."
4551
((RETRY_COUNT++))

app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { MH1 } from '~/components/markdown/m-typography';
22

33
export default function Home() {
4-
return <MH1 className="my-8">Home: 页面建设中...</MH1>;
4+
return <MH1 className="my-8 text-red-400">Home: 页面建设中...</MH1>;
55
}

0 commit comments

Comments
 (0)