Compare commits
1 Commits
main
...
containeri
Author | SHA1 | Date | |
---|---|---|---|
|
44a65116d9 |
19
.gitlab-ci.yml
Normal file
19
.gitlab-ci.yml
Normal file
@ -0,0 +1,19 @@
|
||||
stages:
|
||||
- build
|
||||
|
||||
build_image:
|
||||
stage: build
|
||||
image: docker:latest
|
||||
services:
|
||||
- docker:dind
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
before_script:
|
||||
# Log in to Docker Hub or GitLab Container Registry
|
||||
- echo "$CI_REGISTRY_PASSWORD" | docker login -u "$CI_REGISTRY_USER" --password-stdin "$CI_REGISTRY"
|
||||
script:
|
||||
# Build the Docker image using the Dockerfile in the current directory
|
||||
- docker build -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --build-arg HUGO_BASEURL=https://theinfopunk.com .
|
||||
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA $CI_REGISTRY_IMAGE:latest
|
||||
# Push the Docker image to the registry
|
||||
- docker push $CI_REGISTRY_IMAGE:latest
|
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
#####################################################################
|
||||
# Build Stage #
|
||||
#####################################################################
|
||||
FROM hugomods/hugo:exts as builder
|
||||
# Base URL
|
||||
ARG HUGO_BASEURL=https://theinfopunk.com
|
||||
ENV HUGO_BASEURL=${HUGO_BASEURL}
|
||||
# Build site
|
||||
RUN mkdir -p /src/public
|
||||
COPY . /src
|
||||
# Replace below build command at will.
|
||||
RUN hugo --minify --enableGitInfo
|
||||
# Set the fallback 404 page if defaultContentLanguageInSubdir is enabled,
|
||||
# please replace the `en` with your default language code.
|
||||
# RUN cp ./public/en/404.html ./public/404.html
|
||||
|
||||
#####################################################################
|
||||
# Final Stage #
|
||||
#####################################################################
|
||||
FROM hugomods/hugo:nginx
|
||||
# Copy the generated files to keep the image as small as possible.
|
||||
COPY --from=builder /src/public /site
|
@ -2,7 +2,7 @@ baseurl = "/"
|
||||
languageCode = "en-us"
|
||||
theme = "terminal"
|
||||
paginate = 10
|
||||
publishdir = "/srv/www/theinfopunk.com/"
|
||||
#publishdir = "/srv/www/theinfopunk.com/"
|
||||
|
||||
[params]
|
||||
# dir name of your main content (default is `content/posts`).
|
||||
|
101
config.toml.old
101
config.toml.old
@ -1,101 +0,0 @@
|
||||
baseurl = "/"
|
||||
languageCode = "en-us"
|
||||
theme = "terminal"
|
||||
paginate = 10
|
||||
publishdir = "/srv/www/htdocs/infopunk/"
|
||||
|
||||
[params]
|
||||
# dir name of your main content (default is `content/posts`).
|
||||
# the list of set content will show up on your index page (baseurl).
|
||||
# contentTypeName = "about"
|
||||
|
||||
# ["orange", "blue", "red", "green", "pink"]
|
||||
themeColor = "green"
|
||||
|
||||
# if you set this to 0, only submenu trigger will be visible
|
||||
showMenuItems = 5
|
||||
|
||||
# show selector to switch language
|
||||
showLanguageSelector = false
|
||||
|
||||
# set theme to full screen width
|
||||
fullWidthTheme = true
|
||||
|
||||
# center theme with default width
|
||||
centerTheme = false
|
||||
|
||||
# if your resource directory contains an image called `cover.(jpg|png|webp)`,
|
||||
# then the file will be used as a cover automatically.
|
||||
# With this option you don't have to put the `cover` param in a front-matter.
|
||||
autoCover = true
|
||||
|
||||
# set post to show the last updated
|
||||
# If you use git, you can set `enableGitInfo` to `true` and then post will automatically get the last updated
|
||||
showLastUpdated = false
|
||||
|
||||
# set a custom favicon (default is a `themeColor` square)
|
||||
# favicon = "favicon.ico"
|
||||
|
||||
# Provide a string as a prefix for the last update date. By default, it looks like this: 2020-xx-xx [Updated: 2020-xx-xx] :: Author
|
||||
# updatedDatePrefix = "Updated"
|
||||
|
||||
# set all headings to their default size (depending on browser settings)
|
||||
# oneHeadingSize = true # default
|
||||
|
||||
# whether to show a page's estimated reading time
|
||||
# readingTime = false # default
|
||||
|
||||
# whether to show a table of contents
|
||||
# can be overridden in a page's front-matter
|
||||
#Toc = true # default
|
||||
|
||||
# set title for the table of contents
|
||||
# can be overridden in a page's front-matter
|
||||
# TocTitle = "Table of Contents" # default
|
||||
|
||||
|
||||
[params.twitter]
|
||||
# set Twitter handles for Twitter cards
|
||||
# see https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started#card-and-content-attribution
|
||||
# do not include @
|
||||
creator = ""
|
||||
site = ""
|
||||
|
||||
[languages]
|
||||
[languages.en]
|
||||
languageName = "English"
|
||||
title = "theinfopunk.com"
|
||||
#subtitle = "A simple, retro theme for Hugo"
|
||||
owner = ""
|
||||
keywords = ""
|
||||
copyright = "Creative Commons Attribution-ShareAlike 4.0 International License."
|
||||
menuMore = "Show more"
|
||||
readMore = "Read more"
|
||||
readOtherPosts = "Read other posts"
|
||||
newerPosts = "Newer posts"
|
||||
olderPosts = "Older posts"
|
||||
missingContentMessage = "Page not found..."
|
||||
missingBackButtonLabel = "Back to home page"
|
||||
|
||||
[languages.en.params.logo]
|
||||
logoText = "theinfopunk.com"
|
||||
logoHomeLink = "/"
|
||||
|
||||
[languages.en.menu]
|
||||
[[languages.en.menu.main]]
|
||||
identifier = "life"
|
||||
name = "Life"
|
||||
url = "/Life"
|
||||
[[languages.en.menu.main]]
|
||||
identifier = "osint"
|
||||
name = "OSINT"
|
||||
url = "/OSINT"
|
||||
[[languages.en.menu.main]]
|
||||
identifier = "tech"
|
||||
name = "Tech"
|
||||
url = "/Tech"
|
||||
[[languages.en.menu.main]]
|
||||
identifier = "about"
|
||||
name = "About"
|
||||
url = "/about"
|
||||
|
Loading…
x
Reference in New Issue
Block a user