mirror of
https://github.com/PokeAPI/api-data.git
synced 2024-11-22 07:32:30 +01:00
feat: add Windows support
This commit is contained in:
parent
c0eb25e46b
commit
3666df15b9
22
updater/Run-Updater.ps1
Normal file
22
updater/Run-Updater.ps1
Normal file
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
param (
|
||||
[string]$KeyName = "id_rsa",
|
||||
[Parameter(Mandatory=$true)][string]$CommitterEmail
|
||||
)
|
||||
|
||||
docker run -itd --rm --name pokeapi-api-data-updater --privileged -e COMMIT_EMAIL=${CommitterEmail} pokeapi-updater bash
|
||||
|
||||
docker exec pokeapi-api-data-updater mkdir -p /root/.ssh/
|
||||
|
||||
docker cp ${HOME}/.ssh/${KeyName} pokeapi-api-data-updater:/root/.ssh/id_rsa
|
||||
docker cp ${HOME}/.ssh/${KeyName}.pub pokeapi-api-data-updater:/root/.ssh/id_rsa.pub
|
||||
docker cp ${HOME}/.ssh/known_hosts pokeapi-api-data-updater:/root/.ssh/known_hosts
|
||||
|
||||
docker exec pokeapi-api-data-updater chmod 600 /root/.ssh/id_rsa
|
||||
docker exec pokeapi-api-data-updater chmod 644 /root/.ssh/id_rsa.pub
|
||||
docker exec pokeapi-api-data-updater chmod 644 /root/.ssh/known_hosts
|
||||
|
||||
docker exec pokeapi-api-data-updater bash cmd.bash
|
||||
|
||||
docker stop pokeapi-api-data-updater
|
Loading…
Reference in New Issue
Block a user