Skip to content

Commit

Permalink
Update CI for IONOS (#2)
Browse files Browse the repository at this point in the history
* Update scripts to work with IONOS

* Remove stuff

* Remove PWA

* Revert "Remove stuff"

This reverts commit b8ef6a0.

* Remove a bunch more stuff

* Try to fix some stuff

* Ignore out folder when linting

* Update Readme

* Remove nvmre

---------

Co-authored-by: Lennard Schwarz <[email protected]>
  • Loading branch information
LennardSchwarz and konsila authored Nov 5, 2023
1 parent 108da78 commit af03eca
Show file tree
Hide file tree
Showing 29 changed files with 202 additions and 3,741 deletions.
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ module.exports = {
version: 'detect',
},
},
ignorePatterns: ['out/'], // ignore the static build folder
};
4 changes: 2 additions & 2 deletions .github/workflows/deploy-to-ionos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# More information under https://docs.ionos.space/docs/github-actions-customization/
# version: 2022-07-21

name: "Deploy Now: Deploy to IONOS"
name: 'Deploy Now: Deploy to IONOS'

on:
workflow_dispatch:
Expand Down Expand Up @@ -72,7 +72,7 @@ jobs:
id: template
with:
deployment-id: ${{ matrix.deployment-id }}
data: "[${{ steps.deployment.outputs.template-variables }}, ${{ toJson(secrets) }}]"
data: '[${{ steps.deployment.outputs.template-variables }}, ${{ toJson(secrets) }}]'
input-directory: deployment
output-directory: deployment
intermediate-data-file: deployment/.template-renderer-data
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/konsila.de-build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# To better understand this file read this:
# https://docs.ionos.space/docs/github-actions-customization/

name: "Deploy Now: Execute Build"
name: 'Deploy Now: Execute Build'

on:
workflow_call:
Expand All @@ -14,10 +14,10 @@ on:
type: string

env:
DEPLOYMENT_FOLDER: public
DEPLOYMENT_FOLDER: out

jobs:
# Please do not rename this job
# Please do not rename this job
build-project:
name: build konsila.de
runs-on: ubuntu-latest
Expand All @@ -40,7 +40,7 @@ jobs:
npm ci
npm run build
# Please do not touch the following action
# Please do not touch the following action
- name: Store deployment content
uses: ionos-deploy-now/artifact-action@v1
with:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/konsila.de-orchestration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# More information under https://docs.ionos.space/docs/github-actions-customization/
# version: 2022-07-21

name: "Deploy Now: Orchestration"
name: 'Deploy Now: Orchestration'
run-name: "Deploy Now: Build konsila.de · ${{ github.event.head_commit.message || format('Triggered by {0}', github.triggering_actor) }}"

on:
Expand All @@ -27,7 +27,6 @@ jobs:
project-id: 9d1cde34-9c0f-4291-a2e0-c51399afe67b
action: retrieve-info


build:
name: build
needs: retrieve-project
Expand Down
1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ public/sw.js
public/sw.js.map
public/workbox-*.js
public/workbox-*.js.map


# static files
out*
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ npm run build
# Acknowledgement

This project is based on Maverick's amazing [portfolio website](https://www.supacode.dev/#hero), which I found on the on the [developer portfolios](https://github.com/emmabostian/developer-portfolios) repository.

# Dev Notes

## Build config

This site is hosted on IONOS deploy now as a static website. This is why the build is configured to compile a static site to the 'out' folder.
8 changes: 1 addition & 7 deletions consts/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
export {
aboutRoutes,
blogRoutes,
contactRoutes,
experienceRoutes,
routes,
} from './path/path';
export { routes } from './path/path';

export { socialLinks } from './socialLinks/socialLinks';

Expand Down
24 changes: 0 additions & 24 deletions consts/path/path.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1 @@
export const blogRoutes = {
id: 'blog',
text: 'Blog',
url: '/blog',
};

export const aboutRoutes = {
id: 'about',
text: 'About Me',
url: '/#about',
};

export const contactRoutes = {
id: 'contact',
text: 'Contact',
url: '/#contact',
};

export const experienceRoutes = {
id: 'experience',
text: 'Experience',
url: '/#experience',
};

export const routes = [];
118 changes: 0 additions & 118 deletions content/blogs/9-skills-to-look-for-full-stack-developer.md

This file was deleted.

41 changes: 0 additions & 41 deletions content/blogs/advantages-becoming-fullstack.md

This file was deleted.

8 changes: 8 additions & 0 deletions content/blogs/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
date: '2021-10-18'
title: Example stuff
coverImage: '/assets/blog/computer-programmer-123.jpeg'
excerpt: Example excerpt
---

Example content
13 changes: 0 additions & 13 deletions content/experience/cloud9.md

This file was deleted.

11 changes: 11 additions & 0 deletions content/experience/example.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: 'Example'
company: 'Example Comp'
location: 'Example'
website: 'Example'
duration: 'Example time'
url: '#'
index: 1
---

- Did some awesome stuff
11 changes: 0 additions & 11 deletions content/experience/fluxtech.md

This file was deleted.

11 changes: 0 additions & 11 deletions content/experience/instafreight.md

This file was deleted.

14 changes: 0 additions & 14 deletions content/experience/nbhds.md

This file was deleted.

12 changes: 0 additions & 12 deletions content/experience/oarbt.md

This file was deleted.

14 changes: 0 additions & 14 deletions content/projects/55places.md

This file was deleted.

Loading

0 comments on commit af03eca

Please sign in to comment.