Compare commits

...

4 Commits

Author SHA1 Message Date
472f4a9f08
feat: Publish to dockerhub 2023-11-30 01:32:39 +01:00
ae86d77892
feat: Add prebuilt docker image 2023-11-29 11:57:34 +01:00
7190c0c6e9
Update README.md 2023-08-22 18:33:21 +02:00
2bb86f5fd8
fix: undefined being displayed on final render
Signed-off-by: Avior <f.bouillon@aptatio.com>
2022-12-07 17:59:36 +01:00
3 changed files with 67 additions and 1 deletions

59
.github/workflows/build_docker.yml vendored Normal file
View File

@ -0,0 +1,59 @@
name: Build Docker image
on:
push:
branches:
- '*'
tags:
- v*
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository }}
aviortheking/codestats-skyline
tags: |
type=edge
type=ref,event=pr
type=ref,event=branch,prefix=branch-
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=semver,pattern=latest
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to Github Packages
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
push: true
file: ./Dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

View File

@ -1,5 +1,12 @@
# Code::Stats Skyline
<a href="https://discord.gg/QNupZ4Ywxf">
<img src="https://img.shields.io/discord/1143555541004726272?color=%235865F2&label=Discord" alt="Discord Link">
</a>
<a href="https://github.com/Aviortheking/codestats-skyline/stargazers">
<img src="https://img.shields.io/github/stars/Aviortheking/codestats-skyline?style=flat-square" alt="Github stars">
</a>
Tool to generate an STL using your Codestats Total XPs
[Based on Github's Skyline](skyline.github.com)

View File

@ -102,7 +102,7 @@ export const generateThingy = async (username: string, filterYear?: number): Pro
final += `max = ${max};\n`
final += `min = ${min};\n`
final += `text = "${username}";\n`
final += `year = "${filterYear}";\n`
final += `year = "${filterYear ?? ''}";\n`
if (process.env.NODE_ENV !== 'production') {
console.log(final)