Split build from deploy job, remain single-homed for now
Badgey Deployment / build (push) Successful in 6m9s Details
Badgey Deployment / deploy (push) Successful in 6s Details

This commit is contained in:
Xyon 2024-10-12 14:09:09 +01:00
parent 6f5af282da
commit b48de73829
Signed by: xyon
GPG Key ID: DD18155D6B18078D
1 changed files with 20 additions and 2 deletions

View File

@ -15,10 +15,28 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Pre-seed known_hosts
run: mkdir -pv ~/.ssh && ssh-keyscan -t rsa badgey >> ~/.ssh/known_hosts
- name: Build (Release)
run: cargo build --release --color=always
- name: Archive artifact
uses: actions/upload-artifact@v3
with:
name: badgey
path: target/release/badgey
deploy:
runs-on: rust
container:
options: --dns 172.16.255.254
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: badgey
- name: Pre-seed known_hosts
run: mkdir -pv ~/.ssh && ssh-keyscan -t rsa badgey >> ~/.ssh/known_hosts
- uses: cschleiden/replace-tokens@v1.2
with:
files: config/production.badgey.json