-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
8420e81
commit cbee88a
Showing
2 changed files
with
43 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |