mirror of
https://github.com/giongto35/cloud-game.git
synced 2026-07-26 19:47:25 +00:00
Enable manual production deployments
This commit is contained in:
parent
5199d73caf
commit
4ec18fc34c
2 changed files with 27 additions and 14 deletions
27
.github/workflows/deploy.yml
vendored
Normal file
27
.github/workflows/deploy.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
# ------------------------------------------------------------
|
||||
# Manual production deployment workflow
|
||||
# ------------------------------------------------------------
|
||||
|
||||
name: Deploy
|
||||
on:
|
||||
workflow_dispatch:
|
||||
branding:
|
||||
icon: 'upload-cloud'
|
||||
# inputs:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup SSH
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
with:
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
known_hosts: 'PLACEHOLDER'
|
||||
|
||||
- name: Deploy to all servers
|
||||
env:
|
||||
USERNAME: ${{ github.repository_owner }}
|
||||
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||
DO_TOKEN: ${{ secrets.DO_TOKEN }}
|
||||
run: ./.github/workflows/redeploy/redeploy.sh
|
||||
14
.github/workflows/docker_publish_stable.yml
vendored
14
.github/workflows/docker_publish_stable.yml
vendored
|
|
@ -29,17 +29,3 @@ jobs:
|
|||
|
||||
registry: docker.pkg.github.com
|
||||
repository: ${{ github.REPOSITORY }}/cloud-game
|
||||
|
||||
- name: Install SSH Key
|
||||
uses: shimataro/ssh-key-action@v2
|
||||
with:
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
known_hosts: 'PLACEHOLDER'
|
||||
|
||||
- name: Redeploy all instances
|
||||
env:
|
||||
USERNAME: ${{ github.repository_owner }}
|
||||
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||
DO_TOKEN: ${{ secrets.DO_TOKEN }}
|
||||
run: ./.github/workflows/redeploy/redeploy.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue