Skip to content

Commit

Permalink
Post/ijzer (#6)
Browse files Browse the repository at this point in the history
* WIP blog post

* design section

* WIP ijzer blog post

* WIP

* broadcasting note

* WIP

* section about ijzer::Tensor

* first draft

* Some spelling and grammar

* Updat date

* add ijzer logo to post

* remove readme

* make build action
  • Loading branch information
RikVoorhaar authored Jan 17, 2025
1 parent 8420e81 commit cbee88a
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 22 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Build
run: |
docker build -t blog:latest .
docker push ghcr.io/RikVoorhaar/blog:latest
45 changes: 23 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,29 @@
name: Deploy

on:
push:
branches:
- main
on:
# push:
# branches:
# - main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Executing remote command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
KEY: ${{ secrets.SSH_KEY }}
command_timeout: 60m
script: |
cd /home/rik/infrastructure/blog
git pull origin main
docker compose build
docker compose down
docker compose up -d
- name: Executing remote command
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
USERNAME: ${{ secrets.USERNAME }}
KEY: ${{ secrets.SSH_KEY }}
command_timeout: 60m
script: |
cd /home/rik/infrastructure/blog
git pull origin main
docker compose build
docker compose down
docker compose up -d

0 comments on commit cbee88a

Please sign in to comment.