Use the default image for deploying
Some checks failed
Deploy website to nest / deploy (push) Failing after 1m2s
Some checks failed
Deploy website to nest / deploy (push) Failing after 1m2s
This commit is contained in:
parent
df06adc08f
commit
c42da6b3b3
2 changed files with 8 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue