Add gitea workflow
All checks were successful
Backend Build and Test / build (push) Successful in 2m28s
All checks were successful
Backend Build and Test / build (push) Successful in 2m28s
This commit is contained in:
24
.gitea/workflows/build.yml
Normal file
24
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Backend Build and Test
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: standard-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '>=1.24'
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cd backend
|
||||
go build .
|
||||
|
||||
- name: Test
|
||||
run: |
|
||||
cd backend
|
||||
go test . -v
|
||||
25
.gitea/workflows/deploy.yml
Normal file
25
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Backend Deploy
|
||||
on:
|
||||
push: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: standard-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login
|
||||
with:
|
||||
package_rw: ${{ secrets.PACKAGE_RW }}
|
||||
run: docker login gitea.seeseepuff.be -u seeseemelk -p ${{ secrets.PACKAGE_RW }}
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
cd backend
|
||||
docker build -t gitea.seeseepuff.be/seeseemelk/wolproxy:$(git rev-parse --short HEAD) .
|
||||
|
||||
- name: Push
|
||||
run: |
|
||||
cd backend
|
||||
docker push gitea.seeseepuff.be/seeseemelk/wolproxy:$(git rev-parse --short HEAD)
|
||||
Reference in New Issue
Block a user