Use the default image for deploying

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:
deploy:
runs-on: docker
container:
image: code.forgejo.org/oci/alpine:3.19
steps:
- uses: actions/checkout@v3
- id: deploy

View file

@ -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