move to forgejo actions
Some checks failed
/ Deploy blog to deuterium (push) Failing after 30s

Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
Naman Sood 2024-11-21 17:43:04 -05:00
parent 038ad7a16d
commit 1242e804cf

View file

@ -1,19 +1,23 @@
on: [push] on:
push:
branches:
- 'main'
jobs: jobs:
deploy: deploy:
runs-on: ubuntu-latest runs-on: docker
container:
image: ubuntu:latest
name: Deploy blog to deuterium name: Deploy blog to deuterium
if: github.ref == 'refs/heads/main'
env: env:
MACHINE: deuterium MACHINE: deuterium
steps: steps:
- name: Setup Go 1.19 - name: Setup Go 1.19
id: go id: go
uses: actions/setup-go@v2 uses: https://code.forgejo.org/actions/setup-go@v5
- name: Setup Tailscale - name: Setup Tailscale
id: tailscale id: tailscale
uses: tailscale/github-action@v2 uses: https://github.com/tailscale/github-action@v2
with: with:
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TS_OAUTH_CLIENT_SECRET }} oauth-secret: ${{ secrets.TS_OAUTH_CLIENT_SECRET }}
@ -32,7 +36,7 @@ jobs:
- name: Fetch code - name: Fetch code
id: fetch id: fetch
uses: actions/checkout@v1 uses: https://code.forgejo.org/actions/checkout@v1
- name: Compile blog binary - name: Compile blog binary
id: compile id: compile