Skip to content

Commit

Permalink
Use the SSH credentials in the other deployments too
Browse files Browse the repository at this point in the history
  • Loading branch information
Garanas committed Oct 8, 2024
1 parent 477bd62 commit a900390
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 27 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/deploy-faf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

name: Deploy to FAF

# Prevent simultaneous deployments across all deployment branches as
# Prevent simultaneous deployments across all deployment branches as
# the server is unable to process multiple deployments at the same time.

concurrency:
Expand All @@ -43,8 +43,9 @@ jobs:
- name: Checkout FA repository
uses: actions/checkout@v4
with:
repository: FAForever/fa
ref: master
ssh-key: ${{ secrets.SSH_FAFOREVER_MACHINE_USER }}
repository: FAForever/fa
ref: master

# Allows us to better understand the game version and the specific commit hash when we receive a log
- name: Update version references
Expand All @@ -71,16 +72,14 @@ jobs:
- name: Create a commit
run: |
# Configure git
git config user.email "administrator@faforever.com"
git config user.name "FAForever"
git config user.email "github@faforever.com"
git config user.name "FAForever Machine User"
git add .
git commit -m "Post-process deployment"
# Update the deploy/faf branch, we force push here because
# Update the deploy/faf branch, we force push here because
# we're not interested in fixing conflicts
- name: Update deploy/faf
run: |
git push origin HEAD:deploy/faf --force
19 changes: 9 additions & 10 deletions .github/workflows/deploy-fafbeta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

name: Deploy to FAF Beta Balance

# Prevent simultaneous deployments across all deployment branches as
# Prevent simultaneous deployments across all deployment branches as
# the server is unable to process multiple deployments at the same time.

concurrency:
Expand All @@ -30,7 +30,7 @@ concurrency:
on:
workflow_dispatch:
schedule:
- cron: '0 21 1 * *'
- cron: "0 21 1 * *"

jobs:
test:
Expand All @@ -44,8 +44,9 @@ jobs:
- name: Checkout FA repository
uses: actions/checkout@v4
with:
repository: FAForever/fa
ref: develop
ssh-key: ${{ secrets.SSH_FAFOREVER_MACHINE_USER }}
repository: FAForever/fa
ref: develop

# Allows us to better understand the game version and the specific commit hash when we receive a log
- name: Update version references
Expand All @@ -58,7 +59,7 @@ jobs:
cat lua/version.lua
# Disable debugging statements
#
#
# You can overwrite these adjustments by setting up a `Debug` folder
- name: Overwrite debug references
run: |
Expand All @@ -71,16 +72,14 @@ jobs:
- name: Create a commit
run: |
# Configure git
git config user.email "administrator@faforever.com"
git config user.name "FAForever"
git config user.email "github@faforever.com"
git config user.name "FAForever Machine User"
git add .
git commit -m "Post-process deployment"
# Update the deploy/fafbeta branch, we force push here because
# Update the deploy/fafbeta branch, we force push here because
# we're not interested in fixing conflicts
- name: Update deploy/fafbeta
run: |
git push origin HEAD:deploy/fafbeta --force
16 changes: 7 additions & 9 deletions .github/workflows/deploy-fafdevelop.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

name: Deploy to FAF Develop

# Prevent simultaneous deployments across all deployment branches as
# Prevent simultaneous deployments across all deployment branches as
# the server is unable to process multiple deployments at the same time.

concurrency:
Expand All @@ -30,7 +30,7 @@ concurrency:
on:
workflow_dispatch:
schedule:
- cron: '0 21 * * 4'
- cron: "0 21 * * 4"

jobs:
test:
Expand All @@ -44,9 +44,9 @@ jobs:
- name: Checkout FA repository
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_FAFOREVER_MACHINE_USER }}
repository: FAForever/fa
ref: develop
ssh-key: ${{ secrets.SSH_FAFOREVER_MACHINE_USER }}
repository: FAForever/fa
ref: develop

# Allows us to better understand the game version and the specific commit hash when we receive a log
- name: Update version references
Expand All @@ -59,7 +59,7 @@ jobs:
cat lua/version.lua
# Disable debugging statements
#
#
# You can overwrite these adjustments by setting up a `Debug` folder
- name: Overwrite debug references
run: |
Expand All @@ -78,10 +78,8 @@ jobs:
git add .
git commit -m "Post-process deployment"
# Update the deploy/fafdevelop branch, we force push here because
# Update the deploy/fafdevelop branch, we force push here because
# we're not interested in fixing conflicts
- name: Update deploy/fafdevelop
run: |
git push origin HEAD:deploy/fafdevelop --force

0 comments on commit a900390

Please sign in to comment.