Split build from deploy job, remain single-homed for now
This commit is contained in:
parent
6f5af282da
commit
b48de73829
|
|
@ -15,10 +15,28 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Pre-seed known_hosts
|
|
||||||
run: mkdir -pv ~/.ssh && ssh-keyscan -t rsa badgey >> ~/.ssh/known_hosts
|
|
||||||
- name: Build (Release)
|
- name: Build (Release)
|
||||||
run: cargo build --release --color=always
|
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
|
- uses: cschleiden/replace-tokens@v1.2
|
||||||
with:
|
with:
|
||||||
files: config/production.badgey.json
|
files: config/production.badgey.json
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue