From e0878d59918e0df112d47703f7a4de10afbe5c55 Mon Sep 17 00:00:00 2001 From: Timothy Kim Date: Mon, 16 Mar 2026 21:40:03 -0400 Subject: [PATCH] fix build workflow, deploy test --- .gitea/workflows/build.yml | 13 +++++++++---- static/index.html | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 4cf53ad..6920bfd 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -14,18 +14,23 @@ jobs: uses: actions/checkout@v4 - name: Login to Gitea Registry - run: echo "${{ secrets.CI_REGISTRY_TOKEN }}" | docker login git.timothykim.net -u ${{ gitea.actor }} --password-stdin + env: + REGISTRY_TOKEN: ${{ secrets.CI_REGISTRY_TOKEN }} + run: echo "$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/static:latest + tags: git.timothykim.net/hantim/timothykim.net:latest - name: Deploy + env: + DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }} + DEPLOY_HOST: ${{ vars.DEPLOY_HOST }} run: | mkdir -p ~/.ssh - echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/deploy_key + echo "$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-timothykim.net + ssh -o StrictHostKeyChecking=accept-new -i ~/.ssh/deploy_key deploy@"$DEPLOY_HOST" deploy-timothykim.net diff --git a/static/index.html b/static/index.html index f659a16..3db4ac5 100644 --- a/static/index.html +++ b/static/index.html @@ -5,6 +5,6 @@

Hello, World!

- test 7 + test 8