more-deployment
This commit is contained in:
parent
c252b8420b
commit
0661f5dd3f
4 changed files with 7 additions and 12 deletions
|
@ -16,5 +16,8 @@ jobs:
|
|||
git clone --branch $GITHUB_REF_NAME https://${TOKEN}@${GIT_SERVER}/${REPO}.git .
|
||||
git fetch
|
||||
git checkout ${{ github.head_ref }}
|
||||
- name: list
|
||||
run: ls
|
||||
- name: prepare deploy
|
||||
run: sh ./deploy/prepare-deploy.sh
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -17,14 +17,6 @@ done
|
|||
|
||||
rm ./bin/phpunit
|
||||
APP_ENV=prod composer install --no-dev -a
|
||||
mkdir -p ~/.ssh/
|
||||
# Print the SSH key, replacing newline characters with actual new lines
|
||||
echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
||||
# Set appropriate permissions for the SSH key
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
# Add the remote host's key to the known_hosts file to avoid authenticity confirmation
|
||||
ssh-keyscan -H $HOST >> ~/.ssh/known_hosts
|
||||
# SCP files to the remote host
|
||||
rsync -avz --delete public/ ${USERNAME}@${HOST}:${TARGETDIR}
|
||||
|
||||
|
||||
|
||||
|
|
BIN
public/static/img/slice-of-pizza.png
Normal file
BIN
public/static/img/slice-of-pizza.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
|
@ -3,7 +3,7 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}Welcome!{% endblock %}</title>
|
||||
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text><text y=%221.3em%22 x=%220.2em%22 font-size=%2276%22 fill=%22%23fff%22>sf</text></svg>">
|
||||
<link rel="icon" type="image/png" href="/static/img/slice-of-pizza.png" />
|
||||
<link rel="stylesheet" href="/static/css/simple.min.css">
|
||||
<script src="/static/js/htmx.min.js"></script>
|
||||
</head>
|
||||
|
|
Loading…
Reference in a new issue