diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 2d483a3..4d46119 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -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