publish with cloudflare wrangler
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2022-05-21 16:40:34 +02:00
parent 5ca3f5c32c
commit 3b86252b1f
10 changed files with 13 additions and 47 deletions

View File

@ -1,22 +1,22 @@
kind: pipeline
type: docker
name: html_website
name: Static KMLabz website
steps:
- name: html_validate
- name: Validate HTML
image: ubuntu
commands:
- apt-get update && apt-get install -y tidy
- tidy -imu index.html || true
- name: kaniko
image: banzaicloud/drone-kaniko
- name: Deploy to Cloudflare Pages
image: node
settings:
username:
from_secret: DOCKER_USERNAME
password:
from_secret: DOCKER_PASSWORD
repo: kmlabz/homepage
CLOUDFLARE_ACCOUNT_ID:
from_secret: CLOUDFLARE_ACCOUNT_ID
CLOUDFLARE_API_TOKEN:
from_secret: CLOUDFLARE_API_TOKEN
commands:
tags:
- latest
- ${DRONE_BUILD_NUMBER}
registry: registry.kmlabz.com
- npm install wrangler --save-dev
- npx wrangler pages publish . --project-name=kmlabz-homepage

View File

@ -1,13 +0,0 @@
kind: pipeline
type: docker
name: default
steps:
- name: html_validate
image: ubuntu
commands:
- apt-get update && apt-get install -y tidy
- tidy -imu index.html + || if [ $? -eq 1 ]; then echo "you fail"; fi
trigger:
branch:
- master

View File

@ -1,19 +0,0 @@
language: generic
dist: bionic
addons:
apt:
update: true
packages:
- tidy
services:
- docker
script:
- tidy index.html || true
after_success:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- docker build -t"tormachris/kmlabz-homepage" .
- docker push tormachris/kmlabz-homepage

View File

@ -28,7 +28,7 @@
<meta property="og:title" content="KMLabz Homepage" />
<meta property="og:description" content="Landing page for DevOps services" />
<meta property="og:type" content="website" />
<meta property="og:image" content="https://kmlabz.com/bme-blur.webp" />
<meta property="og:image" content="https://www.kmlabz.com/bme-blur.webp" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"/>
</head>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.9 KiB

View File

@ -1 +0,0 @@
<svg width="2500" height="2246" viewBox="0 0 256 230" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="xMinYMin meet"><link xmlns="" type="text/css" id="dark-mode" rel="stylesheet" href=""/><style xmlns="" type="text/css" id="dark-mode-custom-style"/><path d="M251.22 187.856c5.785 10.045 6.345 20.608 1.538 28.958-4.8 8.357-14.192 13.143-25.768 13.143h-21.816c.259-4.068.431-8.17.431-12.302 0-4.628-.215-9.198-.531-13.754l14.35-.014c3.528 0 6.38-2.867 6.38-6.403a6.46 6.46 0 0 0-.768-3.053l-91.46-158.97a6.349 6.349 0 0 0-5.54-3.24 6.374 6.374 0 0 0-5.461 3.09l-14.522 25.243c44.134 33.27 73.804 84.813 77.864 143.333.316 4.548.531 9.119.531 13.753 0 4.132-.172 8.228-.424 12.302h-71.246c.388-4.053.611-8.148.611-12.302 0-4.649-.273-9.233-.776-13.753-3.52-32.206-19.286-60.748-42.503-80.89l-10.003 17.376c17.54 16.325 29.512 38.558 32.767 63.514.59 4.505.92 9.09.92 13.753 0 4.154-.273 8.264-.74 12.302H29.01c-11.576 0-20.968-4.793-25.768-13.15-4.807-8.35-4.247-18.905 1.538-28.958l13.56-23.238a79.42 79.42 0 0 1 20.715 16.052l-8.083 13.768a6.523 6.523 0 0 0-.77 3.054 6.383 6.383 0 0 0 6.382 6.395l32.033.015c-2.687-15.356-9.772-29.21-19.918-40.183-5.979-6.445-12.963-11.9-20.738-16.074l35.77-62.15a151.427 151.427 0 0 1 21.564 14.624c30.827 25.013 51.644 61.955 55.416 103.776h19.172c-3.91-48.892-28.477-92.006-64.937-120.548a171.205 171.205 0 0 0-21.672-14.457l30.532-53.045C109.583 5.77 118.42 0 128.036 0c9.607 0 18.438 5.77 24.223 15.823l98.961 172.033z" fill="#FB2D26"/></svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 7.7 KiB

BIN
xwiki.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.4 KiB