Skip to content

Commit

Permalink
fix: multiline script to add user
Browse files Browse the repository at this point in the history
  • Loading branch information
neolectron committed Sep 23, 2024
1 parent e097bbc commit f764e4d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/panel-create-user.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,14 @@ jobs:
ssh_cert: ${{ secrets.CODINGLABGG_SSH_CERT }}

- name: '`docker compose run php artisan p:user:mak` on the production server'
run: docker --context prod-server compose run --rm panel php artisan p:user:make \
--username=${{ github.event.inputs.username }} \
--password=${{ github.event.inputs.password }} \
--email=${{ github.event.inputs.email }} \
--admin=${{ github.event.inputs.admin == 'true' && 1 || 0 }} \
--name-first=${{ github.event.inputs.first_name }} \
--name-last=${{ github.event.inputs.last_name }}
run: |
docker --context prod-server compose run --rm panel php artisan p:user:make \
--username=${{ github.event.inputs.username }} \
--password=${{ github.event.inputs.password }} \
--email=${{ github.event.inputs.email }} \
--admin=${{ github.event.inputs.admin == 'true' && 1 || 0 }} \
--name-first=${{ github.event.inputs.first_name }} \
--name-last=${{ github.event.inputs.last_name }}
env:
MYSQL_PASSWORD: ${{ secrets.MYSQL_PASSWORD }}
MYSQL_ROOT_PASSWORD: ${{ secrets.MYSQL_ROOT_PASSWORD }}

0 comments on commit f764e4d

Please sign in to comment.