mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-02-03 14:21:38 -08:00
updated workflow to create env file with secrets
This commit is contained in:
parent
fe42026dd7
commit
17b446e026
1 changed files with 6 additions and 0 deletions
6
.github/workflows/on_merge_to_master.yaml
vendored
6
.github/workflows/on_merge_to_master.yaml
vendored
|
|
@ -21,6 +21,12 @@ jobs:
|
|||
with:
|
||||
ssh-private-key: ${{ secrets.MOONLITE_AWS_EC2_SSH_KEY }}
|
||||
|
||||
- name: Create .env file
|
||||
working-directory: ./
|
||||
run: |
|
||||
echo "SDAPI_USERNAME=${{ vars.MOONLITE_SDAPI_USERNAME }}" >> .env
|
||||
echo "SDAPI_PASSWORD=${{ vars.MOONLITE_SDAPI_PASSWORD }}" >> .env
|
||||
|
||||
- name: SSH into EC2 and deploy the app
|
||||
run: |
|
||||
ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=60 -o StrictHostKeyChecking=no ${{ secrets.MOONLITE_AWS_EC2_SSH_USER }}@${{ secrets.MOONLITE_AWS_EC2_SSH_HOST }} << 'EOF'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue