This commit is contained in:
parent
dd7d338c1c
commit
d5f23c5059
@ -15,20 +15,19 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
apk update
|
apk update
|
||||||
apk add --no-cache openssh
|
apk add --no-cache openssh
|
||||||
|
apk add --no-cache nodejs npm git bash openssh python3 py3-pip py3-passlib
|
||||||
|
python3 -m pip install --user ansible --break-system-packages
|
||||||
export PATH="/root/.local/bin:$PATH"
|
export PATH="/root/.local/bin:$PATH"
|
||||||
# apk add --no-cache nodejs npm git bash openssh python3 py3-pip py3-passlib
|
|
||||||
# python3 -m pip install --user ansible --break-system-packages
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
# - name: Checkout code
|
fetch-depth: 0
|
||||||
# uses: actions/checkout@v4
|
|
||||||
# with:
|
|
||||||
# fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Deploy containers
|
- name: Deploy containers
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.SSH_KNOWN_HOSTS }}"
|
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
|
chmod 700 ~/.ssh
|
||||||
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
|
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> ~/.ssh/known_hosts
|
||||||
chmod 600 ~/.ssh/known_hosts
|
chmod 600 ~/.ssh/known_hosts
|
||||||
eval $(ssh-agent -s)
|
eval $(ssh-agent -s)
|
||||||
@ -37,7 +36,6 @@ jobs:
|
|||||||
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
echo "StrictHostKeyChecking no" >> ~/.ssh/config
|
||||||
echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > ~/.vault_password.txt
|
echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > ~/.vault_password.txt
|
||||||
echo "nameserver 10.10.10.1" > /etc/resolv.conf
|
echo "nameserver 10.10.10.1" > /etc/resolv.conf
|
||||||
cat ~/.ssh/known_hosts
|
./.gitea/workflows/deploy.sh "${{ github.event.before }}" "${{ github.sha }}"
|
||||||
# ./.gitea/workflows/deploy.sh "${{ github.event.before }}" "${{ github.sha }}"
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user