Oliver Davies
|
d3cf57cb16
|
fix: change create-daily to use nvim
|
2023-09-11 20:59:07 +01:00 |
|
Oliver Davies
|
fab344bb78
|
fix(talks): add missing const
|
2023-08-02 23:38:17 +01:00 |
|
Oliver Davies
|
fa84a6ec73
|
ci: upload files from artifact
|
2023-07-18 14:01:48 +01:00 |
|
Oliver Davies
|
71fea3036e
|
feat(create-daily): automatically open the new
...file in Vim
|
2023-06-23 13:08:24 +01:00 |
|
Oliver Davies
|
88a1c38a41
|
chore: remove run file
|
2023-06-06 00:14:32 +01:00 |
|
Oliver Davies
|
0d832674c5
|
feat(justfile): add start recipe
|
2023-04-24 20:46:10 +01:00 |
|
Oliver Davies
|
72c73c0cf1
|
build(justfile): add format
|
2023-04-19 17:21:40 +01:00 |
|
Oliver Davies
|
522102cd86
|
build: remove the website prefix
|
2023-03-21 20:47:25 +00:00 |
|
Oliver Davies
|
3c7db24f1c
|
ci: re-add deploy job
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e4202a6..c0598b0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,7 +14,7 @@ env:
DOCKER_TAG: ${{ github.sha }}
jobs:
- build-and-push-images:
+ build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@5a4ac9002d # v2.3.4
@@ -33,4 +33,22 @@ jobs:
- run: |
just push-images ${{ github.sha }}
+ deploy:
+ runs-on: ubuntu-latest
+ needs:
+ - build
+ steps:
+ - uses: actions/checkout@5a4ac9002d # v2.3.4
+ - uses: extractions/setup-just@95b912dc5d # 1.5.0
+
+ - name: Add the deployment SSH key
+ uses: shimataro/ssh-key-action@3c9b0fc6f2 # 2.3.1
+ with:
+ key: ${{ secrets.SSH_PRIVATE_KEY }}
+ name: id_rsa
+ known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
+
+ - run: |
+ just deploy ${{ github.sha }}
+
# vim: sw=2 ts=2
diff --git a/justfile b/justfile
index e4916d1..5afe23d 100644
--- a/justfile
+++ b/justfile
@@ -12,11 +12,11 @@ create-daily:
touch "${filepath}/${filename}"
eval "${EDITOR}" "${filepath}/${filename}"
-deploy:
+deploy sha:
rm -fr _deploy
docker container rm oliverdavies.uk-build || true
- docker image pull ghcr.io/opdavies/oliverdavies.uk-build
+ docker image pull ghcr.io/opdavies/oliverdavies.uk-build:{{ sha }}
docker container run --entrypoint sh --name oliverdavies.uk-build ghcr.io/opdavies/oliverdavies.uk-build
docker container cp oliverdavies.uk-build:/app/ _deploy
|
2022-09-30 00:20:19 +01:00 |
|
Oliver Davies
|
7baf281e8a
|
ci: start replacing run with just
|
2022-09-29 23:19:08 +01:00 |
|