Compare commits

...

3 commits

Author SHA1 Message Date
84f27c4880 Bump dependencies (#9)
Reviewed-on: #9
2024-11-06 23:16:40 -05:00
638ea4a9d6 Migrate to gitea-actions (#8)
Reviewed-on: #8
2024-07-13 20:27:24 -04:00
864374959e Linting...this is why we have PRs ( ͡° ͜ʖ ͡°) (#7)
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
Reviewed-on: #7
2023-07-07 13:28:11 -04:00
5 changed files with 119 additions and 90 deletions

View file

@ -1,54 +0,0 @@
name: test
kind: pipeline
steps:
- name: linting
image: docker.atomaka.com/mdformat
commands:
- mdformat --check _posts/
- name: jekyll-build
image: ruby
commands:
- gem install bundler
- bundle install
- bundle exec jekyll build
trigger:
branch:
exclude: master
event: push
---
name: deploy
kind: pipeline
steps:
- name: jekyll-build
image: ruby
commands:
- gem install bundler
- bundle install
- bundle exec jekyll build
- name: docker-build
image: plugins/docker
settings:
pull_image: true
registry: docker.atomaka.com
repo: docker.atomaka.com/atomaka.com
tags:
- latest
- ${DRONE_TAG}
- name: deploy
image: appleboy/drone-ssh
settings:
host:
from_secret: unraid_host
username:
from_secret: unraid_username
key:
from_secret: unraid_ssh_key
script:
- bash /boot/local/bin/update-atomaka.sh
trigger:
event: tag

View file

@ -0,0 +1,37 @@
name: Deploy
on:
push:
tags:
- '*'
jobs:
deploy:
runs-on: cth-ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: https://github.com/ruby/setup-ruby@v1
with:
ruby-version: 3.3.5
- run: |
gem install bundler
bundle install
bundle exec jekyll build
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- run: |
ls -la .
ls -la _site/
pwd
- name: Push image
uses: https://github.com/docker/build-push-action@v6
with:
context: .
push: true
tags: |
docker.atomaka.com/atomaka.com:latest
docker.atomaka.com/atomaka.com:${{gitea.ref_name}}
- name: Deploy to server
run: |
curl --oauth2-bearer ${{ secrets.WATCHTOWER_TOKEN }} \
${{ secrets.WATCHTOWER_HOST }}/v1/update?images=docker.atomaka.com/atomaka.com

View file

@ -0,0 +1,28 @@
name: Linting
on:
pull_request:
jobs:
lint:
runs-on: cth-ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: https://github.com/addnab/docker-run-action@v3
with:
image: docker.atomaka.com/mdformat:latest
options: --volumes-from=${{ env.JOB_CONTAINER_NAME }}
run: |
cd ${{ github.workspace }}
mdformat --check _posts/
build:
runs-on: cth-ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: https://github.com/ruby/setup-ruby@v1
with:
ruby-version: 3.3.5
- run: |
gem install bundler
bundle install
bundle exec jekyll build

View file

@ -10,39 +10,48 @@ GIT
GIT
remote: https://github.com/jekyll/jekyll-import
revision: 6499317a81aeda119b6ceefb37ab81c9f6219659
revision: a8bdf6836c889e99b096375544ee53d417d4f5e5
specs:
jekyll-import (0.21.0)
jekyll-import (0.24.0)
jekyll (>= 3.7, < 5.0)
nokogiri (~> 1.0)
reverse_markdown (~> 2.1)
reverse_markdown (>= 2.1, < 4.0)
GEM
remote: https://rubygems.org/
specs:
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
chef-utils (18.1.0)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
bigdecimal (3.1.8)
chef-utils (18.5.0)
concurrent-ruby
colorator (1.1.0)
concurrent-ruby (1.2.0)
concurrent-ruby (1.3.4)
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
eventmachine (1.2.7)
faraday (2.7.4)
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
ffi (1.15.5)
faraday (2.12.0)
faraday-net_http (>= 2.0, < 3.4)
json
logger
faraday-net_http (3.3.0)
net-http
ffi (1.17.0-arm64-darwin)
ffi (1.17.0-x86_64-linux-gnu)
forwardable-extended (2.6.0)
google-protobuf (3.21.12-x86_64-linux)
htmlbeautifier (1.4.2)
google-protobuf (4.28.3-arm64-darwin)
bigdecimal
rake (>= 13)
google-protobuf (4.28.3-x86_64-linux)
bigdecimal
rake (>= 13)
htmlbeautifier (1.4.3)
htmlcompressor (0.4.0)
http_parser.rb (0.8.0)
i18n (1.12.0)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
jekyll (4.3.2)
jekyll (4.3.4)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
@ -74,64 +83,72 @@ GEM
jekyll
jekyll-watch (2.2.1)
listen (~> 3.0)
json (2.8.1)
kramdown (2.4.0)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.8.0)
listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mdl (0.12.0)
logger (1.6.1)
mdl (0.13.0)
kramdown (~> 2.3)
kramdown-parser-gfm (~> 1.1)
mixlib-cli (~> 2.1, >= 2.1.1)
mixlib-config (>= 2.2.1, < 4)
mixlib-shellout
mercenary (0.4.0)
minima (2.5.1)
minima (2.5.2)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
mixlib-cli (2.1.8)
mixlib-config (3.0.27)
tomlrb
mixlib-shellout (3.2.7)
mixlib-shellout (3.3.4)
chef-utils
nokogiri (1.14.1-x86_64-linux)
net-http (0.5.0)
uri
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (5.0.1)
racc (1.6.2)
rake (13.0.6)
public_suffix (6.0.1)
racc (1.8.1)
rake (13.2.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
rb-inotify (0.11.1)
ffi (~> 1.0)
reverse_markdown (2.1.1)
reverse_markdown (3.0.0)
nokogiri
rexml (3.2.5)
rouge (4.0.1)
rss (0.2.9)
rexml (3.3.9)
rouge (4.4.0)
rss (0.3.1)
rexml
ruby2_keywords (0.0.5)
safe_yaml (1.0.5)
sass-embedded (1.58.0)
google-protobuf (~> 3.21)
rake (>= 10.0.0)
sass-embedded (1.80.6-arm64-darwin)
google-protobuf (~> 4.28)
sass-embedded (1.80.6-x86_64-linux-gnu)
google-protobuf (~> 4.28)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3)
tomlrb (2.0.3)
unicode-display_width (2.4.2)
webrick (1.8.1)
unicode-display_width (2.6.0)
uri (0.13.1)
webrick (1.9.0)
PLATFORMS
arm64-darwin-23
x86_64-linux
DEPENDENCIES
@ -152,4 +169,4 @@ DEPENDENCIES
wdm (~> 0.1.1)
BUNDLED WITH
2.3.26
2.5.18

View file

@ -3,6 +3,7 @@ layout: post
title: Delete your code
date: 2023-07-07 13:20 -0400
---
One of the most consistent things I have observed over the last two decades
while working with software engineering teams is an unwillingness to delete
code. Functions and files left long after they have been replaced. Hundred