Skip to content

Commit 930e66a

Browse files
committed
fix actions
1 parent 6e66b92 commit 930e66a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

actions/deploy-reflex-backend/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#
88

99
name: "Deploy Reflex Site Backend"
10-
description: "Deploys a reflex site backend to a VPS (set up as a webserver based on TimChild/webserver-template)"
10+
description: "Deploys a reflex site backend to a VPS (set up as a webserver based on TimChild/webserver-template) -- Requires `packages write` permission"
1111
author: "Tim Child"
1212

1313
inputs:
@@ -21,7 +21,7 @@ inputs:
2121
type: string
2222
ssh-user:
2323
description: "The user to connect to the VPS as (defaults to '${{ inputs.ssh-user }}')"
24-
default: "${{ inputs.ssh-user }}"
24+
default: "webadmin"
2525
required: false
2626
type: string
2727
dotenv-path:
@@ -82,7 +82,7 @@ runs:
8282
context: .
8383
file: backend.Dockerfile
8484
push: true
85-
tags: ghcr.io/${{ env.OWNER_LC }}/${{ vars.site-name }}-backend:latest
85+
tags: ghcr.io/${{ env.OWNER_LC }}/${{ inputs.site-name }}-backend:latest
8686

8787
- name: Send .env file to server
8888
if: ${{ inputs.dotenv-path != "" }}
@@ -93,7 +93,7 @@ runs:
9393
key: ${{ inputs.ssh-private-key }}
9494
port: 22
9595
source: ${{ inputs.dotenv-path }}
96-
target: sites/${{ vars.site-name }}/.env
96+
target: sites/${{ inputs.site-name }}/.env
9797
overwrite: true
9898

9999
- name: Set .env permissions
@@ -104,7 +104,7 @@ runs:
104104
username: ${{ inputs.ssh-user }}
105105
key: ${{ inputs.ssh-private-key }}
106106
script: |
107-
chmod 600 sites/${{ vars.site-name }}/.env
107+
chmod 600 sites/${{ inputs.site-name }}/.env
108108
109109
- name: Pull new backend image on server and restart updated container
110110
uses: appleboy/[email protected]
@@ -115,5 +115,5 @@ runs:
115115
script: |
116116
# Log in to GitHub Container Registry
117117
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin && \
118-
docker pull ghcr.io/${{ env.OWNER_LC }}/${{ vars.site-name }}-backend:latest && \
118+
docker pull ghcr.io/${{ env.OWNER_LC }}/${{ inputs.site-name }}-backend:latest && \
119119
docker compose up -d

actions/deploy-reflex-frontend/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ inputs:
2020
type: string
2121
ssh-user:
2222
description: "The user to connect to the VPS as (defaults to '${{ inputs.ssh-user }}')"
23-
default: "${{ inputs.ssh-user }}"
23+
default: "webadmin"
2424
required: false
2525
type: string
2626
ssh-private-key:
@@ -75,7 +75,7 @@ runs:
7575
key: ${{ inputs.ssh-private-key }}
7676
port: 22
7777
source: ./site/
78-
target: sites/${{ vars.site-name }}/static/
78+
target: sites/${{ inputs.site-name }}/static/
7979
strip_components: 2
8080
overwrite: true
8181

0 commit comments

Comments
 (0)