Compare commits
23 Commits
revert-alp
...
add-email
| Author | SHA1 | Date | |
|---|---|---|---|
| 854a845ac6 | |||
| 1468fd3afb | |||
| 28ed9a1d2d | |||
|
|
576d24ff5d | ||
| 14240fee26 | |||
| 28101779ee | |||
| 6f39048036 | |||
| 8340a42f4d | |||
| e67c0699a7 | |||
| 0a4a6f12e2 | |||
| 0a2c6ba099 | |||
|
|
0d11da55e1 | ||
| 9c46033ab4 | |||
| 5873412a9f | |||
|
|
6a9aef07db | ||
|
|
21ebb45089 | ||
| d9c7cb6963 | |||
| 870672d19b | |||
|
|
ca7ae870e8 | ||
|
|
69b0417d03 | ||
| 99c80d7737 | |||
| bc53f36260 | |||
| caa9280236 |
52
.github/workflows/actions.yml
vendored
52
.github/workflows/actions.yml
vendored
@@ -3,21 +3,16 @@ name: Docker Build
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main # Set a branch to deploy
|
||||||
|
|
||||||
env:
|
env:
|
||||||
IMAGE_REGISTRY: ghcr.io
|
IMAGE_REGISTRY: ghcr.io
|
||||||
TOKEN_USER: HotaruBlaze
|
|
||||||
IMAGE_OWNER: fluttershub
|
IMAGE_OWNER: fluttershub
|
||||||
IMAGE_NAME: homepage
|
IMAGE_NAME: homepage
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
BuildImage:
|
Build_x86:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
CPU_ARCH:
|
|
||||||
- arm64
|
|
||||||
- x86_64
|
|
||||||
# If running with act, Uncomment below
|
# If running with act, Uncomment below
|
||||||
# container: phaze9/action-runner
|
# container: phaze9/action-runner
|
||||||
env:
|
env:
|
||||||
@@ -25,46 +20,59 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v1
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Available platforms
|
|
||||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
|
||||||
|
|
||||||
- name: Login to ghcr.io
|
- name: Login to ghcr.io
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.IMAGE_REGISTRY }}
|
registry: ${{ env.IMAGE_REGISTRY }}
|
||||||
username: ${{ env.TOKEN_USER }}
|
username: ${{ env.IMAGE_OWNER }}
|
||||||
password: ${{ secrets.TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push - x64
|
- name: Build Docker Image
|
||||||
id: docker_build_x64
|
id: docker_build_x64
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
if: ${{ matrix.CPU_ARCH == 'x86_64'}}
|
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/amd64
|
platforms: linux/amd64
|
||||||
labels: org.opencontainers.image.source https://github.com/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}
|
labels: org.opencontainers.image.source https://github.com/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}
|
||||||
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:x64-latest
|
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:x64-latest
|
||||||
|
|
||||||
- name: Build and push - arm64
|
Build_ARM64:
|
||||||
|
runs-on: [self-hosted, linux, ARM64]
|
||||||
|
# If running with act, Uncomment below
|
||||||
|
# container: phaze9/action-runner
|
||||||
|
env:
|
||||||
|
DOCKER_CONFIG: $HOME/.docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
id: buildx
|
||||||
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
|
- name: Login to ghcr.io
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ${{ env.IMAGE_REGISTRY }}
|
||||||
|
username: ${{ env.IMAGE_OWNER }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build Docker Image
|
||||||
id: docker_build_arm64
|
id: docker_build_arm64
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
if: ${{ matrix.CPU_ARCH == 'arm64'}}
|
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
labels: org.opencontainers.image.source https://github.com/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}
|
labels: org.opencontainers.image.source https://github.com/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}
|
||||||
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:arm-latest
|
tags: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:arm64-latest
|
||||||
|
|
||||||
|
|
||||||
Deploy:
|
Deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: BuildImage
|
needs: Build_x86
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Run Ansible playbook
|
- name: Run Ansible playbook
|
||||||
|
|||||||
2
.github/workflows/snyk-container.yml
vendored
2
.github/workflows/snyk-container.yml
vendored
@@ -39,7 +39,7 @@ jobs:
|
|||||||
# Snyk can be used to break the build when it detects vulnerabilities.
|
# Snyk can be used to break the build when it detects vulnerabilities.
|
||||||
# In this case we want to upload the issues to GitHub Code Scanning
|
# In this case we want to upload the issues to GitHub Code Scanning
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: snyk/actions/docker@14818c4695ecc4045f33c9cee9e795a788711ca4
|
uses: snyk/actions/docker@master
|
||||||
env:
|
env:
|
||||||
# In order to use the Snyk Action you will need to have a Snyk API token.
|
# In order to use the Snyk Action you will need to have a Snyk API token.
|
||||||
# More details in https://github.com/snyk/actions#getting-your-snyk-token
|
# More details in https://github.com/snyk/actions#getting-your-snyk-token
|
||||||
|
|||||||
15
Dockerfile
15
Dockerfile
@@ -1,20 +1,23 @@
|
|||||||
FROM node:18-alpine AS base
|
FROM node:18.6 AS base
|
||||||
LABEL version="4.1.0"
|
LABEL version="4.1.0"
|
||||||
LABEL description=""
|
LABEL description=""
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get upgrade -y \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
COPY ["package.json", "./"]
|
COPY ["package.json", "./"]
|
||||||
COPY ["yarn.lock", "./"]
|
COPY ["yarn.lock", "./"]
|
||||||
|
|
||||||
FROM base AS builder
|
FROM base AS builder
|
||||||
RUN apk add --no-cache --virtual .gyp python3 make g++ \
|
RUN yarn install
|
||||||
&& yarn install \
|
|
||||||
&& apk del .gyp
|
|
||||||
|
|
||||||
COPY ["src/", "./src"]
|
COPY ["src/", "./src"]
|
||||||
RUN npm run Prod
|
RUN npm run Prod
|
||||||
|
|
||||||
FROM nginx:1.21.6-alpine as Web
|
FROM nginx:1.23.1-alpine as Web
|
||||||
|
|
||||||
|
RUN apk --update --no-cache upgrade
|
||||||
|
|
||||||
LABEL maintainer="Phoenix (https://github.com/HotaruBlaze)"
|
LABEL maintainer="Phoenix (https://github.com/HotaruBlaze)"
|
||||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
COPY docker/web.conf /etc/nginx/conf.d/web.conf
|
COPY docker/web.conf /etc/nginx/conf.d/web.conf
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
"author": "HotaruBlaze",
|
"author": "HotaruBlaze",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git@github.com:github/Fluttershub.git"
|
"url": "git@github.com:Fluttershub/Homepage.git"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinit": "npx npm-force-resolutions",
|
"preinit": "npx npm-force-resolutions",
|
||||||
@@ -17,10 +17,9 @@
|
|||||||
"Prod": "npm run Cleanup && npm run Init && parcel build src/index.pug --dist-dir build"
|
"Prod": "npm run Cleanup && npm run Init && parcel build src/index.pug --dist-dir build"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"parcel": "^2.5.0"
|
"@parcel/transformer-pug": "2.6.2",
|
||||||
},
|
"@parcel/transformer-sass": "2.6.2",
|
||||||
"engines": {
|
"parcel": "^2.6.2"
|
||||||
"node": "^18.*"
|
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"node-forge": "0.10.0"
|
"node-forge": "0.10.0"
|
||||||
|
|||||||
@@ -18,7 +18,6 @@
|
|||||||
mode: '0755'
|
mode: '0755'
|
||||||
loop:
|
loop:
|
||||||
- docker-compose.yml
|
- docker-compose.yml
|
||||||
register: compose
|
|
||||||
|
|
||||||
- name: deploy Docker Compose stack if updated
|
- name: deploy Docker Compose stack if updated
|
||||||
community.docker.docker_compose:
|
community.docker.docker_compose:
|
||||||
@@ -26,4 +25,3 @@
|
|||||||
pull: true
|
pull: true
|
||||||
files:
|
files:
|
||||||
- docker-compose.yml
|
- docker-compose.yml
|
||||||
when: compose.changed
|
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ html(lang='en')
|
|||||||
.container
|
.container
|
||||||
.pod
|
.pod
|
||||||
.glow
|
.glow
|
||||||
img#profile_pic(src='https://img.fluttershub.com/VjpiMs7xp60yEcAH.png', alt='')
|
img#profile_pic(src='https://s3.fluttershub.com/fluttershub-com/public/profile_pic.png', alt='')
|
||||||
h1.welcome_text.text-flicker.text-flicker-1 Phoenix/Hotaru
|
h1.welcome_text.text-flicker.text-flicker-1 Phoenix/Hotaru
|
||||||
p.about_me.standard_text.text-box-glow
|
p.about_me.standard_text.text-box-glow
|
||||||
.pod
|
.pod
|
||||||
@@ -22,6 +22,8 @@ html(lang='en')
|
|||||||
a.standard_text.text-flicker-2(href="https://twitter.com/HotaruBlaze") Twitter
|
a.standard_text.text-flicker-2(href="https://twitter.com/HotaruBlaze") Twitter
|
||||||
a.standard_text.text-flicker-2(href="https://github.com/HotaruBlaze") Github
|
a.standard_text.text-flicker-2(href="https://github.com/HotaruBlaze") Github
|
||||||
a.standard_text.text-flicker-2(href="https://gitlab.com/HotaruBlaze") Gitlab
|
a.standard_text.text-flicker-2(href="https://gitlab.com/HotaruBlaze") Gitlab
|
||||||
|
a.standard_text.text-flicker-2(href="mailto:hotarublaze@gmail.com") Email
|
||||||
footer.standard_text.footer-slide
|
footer.standard_text.footer-slide
|
||||||
.creator
|
.creator
|
||||||
a.build_text(href="https://img.fluttershub.com/EgOwhwrHyHWw.png") Cookie? 🍪
|
a.build_text(href="https://www.youtube.com/watch?v=5DWFZhAVI3s") Cookie?
|
||||||
|
a.cookie(href="https://img.fluttershub.com/pdDK7pdVJZU3d9UI.jpg") 🍪
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ meta(property='og:url', content='https://fluttershub.com')
|
|||||||
meta(property='og:type', content='website')
|
meta(property='og:type', content='website')
|
||||||
meta(property='og:title', content='Phoenix\'s Personal Website')
|
meta(property='og:title', content='Phoenix\'s Personal Website')
|
||||||
meta(property='og:description', content='We got cookies and milk!')
|
meta(property='og:description', content='We got cookies and milk!')
|
||||||
meta(property='og:image', content='http://storage.googleapis.com/api.fluttershub.com/images/public/profile_pic.jpg')
|
meta(property='og:image', content='http://s3.fluttershub.com/fluttershub-com/public/profile_pic.png')
|
||||||
meta(property='og:image:secure_url', content='https://storage.googleapis.com/api.fluttershub.com/images/public/profile_pic.jpg')
|
meta(property='og:image:secure_url', content='https://s3.fluttershub.com/fluttershub-com/public/profile_pic.png')
|
||||||
|
|||||||
@@ -60,6 +60,9 @@ body,html, .container {
|
|||||||
-moz-user-select: text;
|
-moz-user-select: text;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
.cookie {
|
||||||
|
text-decoration: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.no_hightnight a:link, a{
|
.no_hightnight a:link, a{
|
||||||
color: inherit;
|
color: inherit;
|
||||||
|
|||||||
Reference in New Issue
Block a user