Skip to content

update passowrd

update passowrd #3

Workflow file for this run

name: 🚀 Deploy
on:
push:
branches: [main]
paths: ['users.csv']
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- run: |
go mod tidy
go build
- name: Configure SSH
run: |
mkdir -p ~/.ssh/
echo "$SSH_SKEY" > ~/.ssh/staging.key
chmod 600 ~/.ssh/staging.key
cat >>~/.ssh/config <<END
Host deploy
HostName $SSH_HOST
User $SSH_USER
IdentityFile ~/.ssh/staging.key
IdentitiesOnly yes
StrictHostKeyChecking no
Port $SSH_PORT
END
env:
SSH_USER: ${{ secrets.DEV_FORKBOMB_USER }}
SSH_SKEY: ${{ secrets.DEV_FORKBOMB_SKEY }}
SSH_HOST: ${{ secrets.DEV_FORKBOMB_HOST }}
SSH_PORT: ${{ secrets.DEV_FORKBOMB_PORT }}
- name: Copy files
run: |
scp users.csv deploy:plain_auth_server/
scp plain_auth_service deploy:plain_auth_server/
- name: Restart the service
run: ssh deploy "sh -c 'pkill -f plain_auth_service ; nohup ./plain_auth_server/plain_auth_service > /dev/null 2>&1 &'"