Compare commits

...

19 commits

Author SHA1 Message Date
aaddbeae7f
Provide path context over git hash
All checks were successful
Linting / lint (pull_request) Successful in 13s
Linting / build (pull_request) Successful in 15s
Deploy / deploy (push) Successful in 54s
2024-07-13 20:14:30 -04:00
a45b14d39d
Debug
Some checks failed
Deploy / deploy (push) Failing after 26s
2024-07-13 16:41:59 -04:00
c4911976c4
Remove drone file
Some checks failed
Linting / lint (pull_request) Successful in 11s
Linting / build (pull_request) Successful in 15s
Deploy / deploy (push) Failing after 24s
2024-07-13 16:19:40 -04:00
8553ac1d9f
Setup deploy
All checks were successful
Linting / build (pull_request) Successful in 11s
Linting / lint (pull_request) Successful in 26s
2024-07-13 16:19:16 -04:00
3e3dbc2555
Revert "break lint"
All checks were successful
Linting / lint (pull_request) Successful in 14s
Linting / build (pull_request) Successful in 15s
This reverts commit 74edf4d8bc.
2024-07-12 23:04:54 -04:00
74edf4d8bc
break lint
Some checks failed
Linting / lint (pull_request) Failing after 15s
Linting / build (pull_request) Successful in 16s
2024-07-12 23:03:48 -04:00
9073df8de7
try docker run action
All checks were successful
Linting / build (pull_request) Successful in 20s
Linting / lint (pull_request) Successful in 26s
2024-07-12 23:01:30 -04:00
3f351610c5
Data volume; remove after run
All checks were successful
Linting / lint (pull_request) Successful in 11s
Linting / build (pull_request) Successful in 17s
2024-07-12 22:30:00 -04:00
1e964c9be9
¯\_(ツ)_/¯
All checks were successful
Linting / lint (pull_request) Successful in 18s
Linting / build (pull_request) Successful in 22s
2024-07-12 22:14:55 -04:00
3bb841fc3a
Debug out of container
All checks were successful
Linting / build (pull_request) Successful in 15s
Linting / lint (pull_request) Successful in 12s
2024-07-12 22:09:02 -04:00
f9ff89efb4
Debug
All checks were successful
Linting / build (pull_request) Successful in 15s
Linting / lint (pull_request) Successful in 9s
2024-07-12 22:03:09 -04:00
c7725058dc
Use absolute path
Some checks failed
Linting / lint (pull_request) Failing after 15s
Linting / build (pull_request) Successful in 13s
2024-07-12 22:01:06 -04:00
fe2a7117c4
Mount the image
Some checks failed
Linting / build (pull_request) Successful in 17s
Linting / lint (pull_request) Failing after 15s
2024-07-12 21:37:08 -04:00
9032ea02c9
Run docker container directly
Some checks failed
Linting / lint (pull_request) Failing after 13s
Linting / build (pull_request) Successful in 17s
2024-07-12 21:13:58 -04:00
0c064fcbfb
Install ruby
Some checks failed
Linting / lint (pull_request) Failing after 7s
Linting / build (pull_request) Successful in 34s
2024-07-12 21:12:15 -04:00
74c9adaa82
Check out the source
Some checks failed
Linting / lint (pull_request) Failing after 6s
Linting / build (pull_request) Failing after 17s
2024-07-12 21:10:22 -04:00
818c21bd39
noop
Some checks failed
Linting / build (pull_request) Failing after 6s
Linting / lint (pull_request) Failing after 29s
2024-07-12 21:08:04 -04:00
4d35c3c331
Try container, but it will probably fail 2024-07-12 21:06:54 -04:00
961e9a206a
Update gemfile? 2024-07-12 21:06:45 -04:00
4 changed files with 69 additions and 54 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: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
- run: |
gem install bundler
bundle install
bundle exec jekyll build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- run: |
ls -la .
ls -la _site/
pwd
- name: Push image
uses: 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: 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: ruby/setup-ruby@v1
with:
ruby-version: 3.1.2
- run: |
gem install bundler
bundle install
bundle exec jekyll build

View file

@ -36,6 +36,7 @@ GEM
faraday-net_http (3.0.2)
ffi (1.15.5)
forwardable-extended (2.6.0)
google-protobuf (3.21.12)
google-protobuf (3.21.12-x86_64-linux)
htmlbeautifier (1.4.2)
htmlcompressor (0.4.0)
@ -98,6 +99,8 @@ GEM
tomlrb
mixlib-shellout (3.2.7)
chef-utils
nokogiri (1.14.1-arm64-darwin)
racc (~> 1.4)
nokogiri (1.14.1-x86_64-linux)
racc (~> 1.4)
octokit (4.25.1)
@ -132,6 +135,7 @@ GEM
webrick (1.8.1)
PLATFORMS
arm64-darwin-23
x86_64-linux
DEPENDENCIES