diff --git a/.agola/config.yml b/.agola/config.yml new file mode 100644 index 0000000..d9e0fdc --- /dev/null +++ b/.agola/config.yml @@ -0,0 +1,38 @@ +version: v0 +runs: + - name: Build + tasks: + - name: checkout code + runtime: + type: pod + containers: + - image: docker.io/alpine/git + steps: + - clone: + - save_to_workspace: + contents: + - source_dir: . + dest_dir: . + paths: + - '**' + - name: build docker image + runtime: + containers: + - image: gcr.io/kaniko-project/executor:debug + shell: /busybox/sh + steps: + - restore_workspace: + dest_dir: . + - run: + name: generate docker config + command: | + cat << EOF > /kaniko/.docker/config.json + { + "auths": { + "code.icb4dc0.de": { "auth" : "$DOCKERAUTH" } + } + } + EOF + - run: /kaniko/executor --destination code.icb4dc0.de/prskr/blog:latest + depends: + - checkout code diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..a39aa8d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +public/ +.github/ +.git/ + +Dockerfile +.dockerignore +.gitignore +.gitmodules \ No newline at end of file diff --git a/.gitignore b/.gitignore index b16cc9c..5ba4e09 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,9 @@ hugo.linux /.hugo_build.lock # IntelliJ project files -.idea/ \ No newline at end of file +.idea/ + +*.o +cmake-build-debug +out/ +CMakeLists.txt \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4560987 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM docker.io/alpine:latest as builder + +WORKDIR /src + +COPY . ./ + +RUN apk add -U hugo && \ + hugo --minify --environment production + +FROM docker.io/caddy:2-alpine + +COPY --from=builder /src/public /usr/share/caddy \ No newline at end of file diff --git a/config.toml b/config.toml index 7b8e83a..42df1ef 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,6 @@ -baseURL = 'https://www.1533b4dc0.de/' +baseURL = 'https://www.icb4dc0.de/' languageCode = 'en-us' -title = '1533B4dC0.de' +title = 'icb4dc0.de' theme = "anubis" paginate = 10 enableEmoji = true