mirror of
https://github.com/BeardedTek/flowbite-beardedtek.com.git
synced 2025-12-06 05:31:52 +00:00
Let's try this again
This commit is contained in:
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@@ -12,16 +12,6 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up SSH key
|
||||
env:
|
||||
DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
|
||||
REMOTE_HOST: ${{ secrets.REMOTE_HOST}}
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "$DEPLOY_KEY" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H $REMOTE_HOST >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Deploy with Docker Compose
|
||||
env:
|
||||
DEPLOY_KEY: ${{secrets.DEPLOY_KEY}}
|
||||
@@ -31,4 +21,8 @@ jobs:
|
||||
DC_BUILD_FLAGS: "--no-cache"
|
||||
DC_UP_FLAGS: "-d"
|
||||
run: |
|
||||
mkdir -p ~/.ssh
|
||||
echo "$DEPLOY_KEY" > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
ssh-keyscan -H $REMOTE_HOST >> ~/.ssh/known_hosts
|
||||
ssh -i ~/.ssh/id_rsa $REMOTE_USER@$REMOTE_HOST "docker compose -f $DC_FILE build $DC_BUILD_FLAGS && docker compose -f $DC_FILE up $DC_UP_FLAGS"
|
||||
Reference in New Issue
Block a user