From c42da6b3b3219a2a6b056e4b69bddff2363d9a95 Mon Sep 17 00:00:00 2001 From: 9pfs <9pfs@amcforum.wiki> Date: Sat, 6 Apr 2024 18:00:11 -0700 Subject: [PATCH] Use the default image for deploying --- .forgejo/workflows/deploy.yml | 2 -- website-deploy-action.sh | 16 ++++++++-------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 44c99cc..719a714 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -7,8 +7,6 @@ on: jobs: deploy: runs-on: docker - container: - image: code.forgejo.org/oci/alpine:3.19 steps: - uses: actions/checkout@v3 - id: deploy diff --git a/website-deploy-action.sh b/website-deploy-action.sh index 305b785..bf370c1 100755 --- a/website-deploy-action.sh +++ b/website-deploy-action.sh @@ -1,9 +1,9 @@ #!/bin/bash -# Assuming that this is an Alpine container. -apk update -apk upgrade -apk add openssh -mkdir .ssh -echo $DEPLOY_SSH_KEY > .ssh/id_ed25519 -chmod -R go-rwx .ssh -exec ssh h@hackclub.app +# Assuming that this is a Debian container. +apt-get update && \ +apt-get upgrade -y && \ +apt install -y openssh && \ +mkdir .ssh && \ +echo $DEPLOY_SSH_KEY > .ssh/id_ed25519 && \ +chmod -R go-rwx .ssh && \ +ssh h@hackclub.app