forked from 9pfs/h.hackclub.app
Use the default image for deploying
This commit is contained in:
parent
df06adc08f
commit
c42da6b3b3
2 changed files with 8 additions and 10 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue