Skip to content

Commit

Permalink
feat: add subdomain: blog.
Browse files Browse the repository at this point in the history
  • Loading branch information
wicogohome committed Jul 24, 2024
1 parent b9fd44c commit 5ecd6c2
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 7 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,17 @@ jobs:
with:
args: --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BLOG_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ vars.AWS_REGION }}
SOURCE_DIR: dist
SOURCE_DIR: "dist/blog"
- uses: jakejarvis/s3-sync-action@master
with:
args: --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_MAIN_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ vars.AWS_REGION }}
SOURCE_DIR: "dist/main"
12 changes: 12 additions & 0 deletions docker-compose.blog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
nginx:
image: nginx
networks:
- backend
ports:
- "80:80"
volumes:
- ./dist/blog/:/usr/share/nginx/html

networks:
backend:
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
ports:
- "80:80"
volumes:
- ./dist/:/usr/share/nginx/html
- ./dist/main/:/usr/share/nginx/html

networks:
backend:
1 change: 0 additions & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ export default defineConfig(
// sitemap: {
// hostname: "https://wicotang.com/blog/",
// },
base: "/blog/",
outDir: "../dist/blog/",
srcDir,
lastUpdated: true,
Expand Down
4 changes: 2 additions & 2 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default {
extend: {
backgroundImage: {
"black-textured":
"linear-gradient(to bottom, rgba(62,63,59,0.5) ,rgba(62,63,59,0.5)), url('/blog/black-concrete-textured.jpg')",
headshot: "url('/blog/headshot.jpg')",
"linear-gradient(to bottom, rgba(62,63,59,0.5) ,rgba(62,63,59,0.5)), url('/black-concrete-textured.jpg')",
headshot: "url('/headshot.jpg')",
},
fontFamily: {
sans: ["Inter", "sans-serif"],
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ export default defineConfig({
alias: [{ find: "@/", replacement: fileURLToPath(new URL("./src/", import.meta.url)) }],
},
build: {
outDir: "dist/portfolio/",
outDir: "dist/main/",
},
});

0 comments on commit 5ecd6c2

Please sign in to comment.