Initial commit

This commit is contained in:
hantim
2026-03-16 21:09:59 -04:00
commit a8a215558b
5 changed files with 67 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to Gitea Registry
run: echo "{ secrets.CI_REGISTRY_TOKEN }" | docker login git.timothykim.net -u timothykim --password-stdin
- name: Build and Push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: git.timothykim.net/hantim/hantim.net:latest
- name: Deploy
run: |
mkdir -p ~/.ssh
echo "{ secrets.DEPLOY_SSH_KEY }" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh -o StrictHostKeyChecking=accept-new -i ~/.ssh/deploy_key deploy@{ vars.DEPLOY_HOST } deploy-hantim.net