Use the default image for deploying
Some checks failed
Deploy website to nest / deploy (push) Failing after 1m2s

This commit is contained in:
9pfs 2024-04-06 18:00:11 -07:00
parent df06adc08f
commit c42da6b3b3
Signed by: 9pfs
SSH key fingerprint: SHA256:TOcGxMQCfy4VvRM8AzgXErKXdkAtaTcpGXgYMpyoJoY
2 changed files with 8 additions and 10 deletions

View file

@ -7,8 +7,6 @@ on:
jobs: jobs:
deploy: deploy:
runs-on: docker runs-on: docker
container:
image: code.forgejo.org/oci/alpine:3.19
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- id: deploy - id: deploy

View file

@ -1,9 +1,9 @@
#!/bin/bash #!/bin/bash
# Assuming that this is an Alpine container. # Assuming that this is a Debian container.
apk update apt-get update && \
apk upgrade apt-get upgrade -y && \
apk add openssh apt install -y openssh && \
mkdir .ssh mkdir .ssh && \
echo $DEPLOY_SSH_KEY > .ssh/id_ed25519 echo $DEPLOY_SSH_KEY > .ssh/id_ed25519 && \
chmod -R go-rwx .ssh chmod -R go-rwx .ssh && \
exec ssh h@hackclub.app ssh h@hackclub.app