cicd: build auth using actions
This commit is contained in:
parent
4c74315291
commit
e98d2c6509
2 changed files with 23 additions and 5 deletions
|
|
@ -20,9 +20,9 @@ jobs:
|
|||
go-version: '^1.25'
|
||||
check-latest: false
|
||||
cache-dependency-path: |
|
||||
modules/backend/go.sum
|
||||
go.sum
|
||||
|
||||
- name: Build Go app
|
||||
- name: Build backend
|
||||
run: |
|
||||
cd modules/backend
|
||||
go mod tidy
|
||||
|
|
@ -35,6 +35,19 @@ jobs:
|
|||
name: nyanimedb-backend.tar.gz
|
||||
path: modules/backend/nyanimedb-backend.tar.gz
|
||||
|
||||
- name: Build auth
|
||||
run: |
|
||||
cd modules/auth
|
||||
go mod tidy
|
||||
go build -o auth .
|
||||
tar -czvf nyanimedb-auth.tar.gz auth
|
||||
|
||||
- name: Upload built auth to artifactory
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: nyanimedb-auth.tar.gz
|
||||
path: modules/auth/nyanimedb-auth.tar.gz
|
||||
|
||||
# Build frontend
|
||||
- uses: actions/setup-node@v5
|
||||
with:
|
||||
|
|
@ -76,6 +89,14 @@ jobs:
|
|||
push: true
|
||||
tags: meowgit.nekoea.red/nihonium/nyanimedb-backend:latest
|
||||
|
||||
- name: Build and push auth image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfiles/Dockerfile_auth
|
||||
push: true
|
||||
tags: meowgit.nekoea.red/nihonium/nyanimedb-auth:latest
|
||||
|
||||
- name: Build and push frontend image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
|
|
|
|||
3
go.mod
3
go.mod
|
|
@ -9,10 +9,7 @@ require (
|
|||
github.com/jackc/pgx/v5 v5.7.6
|
||||
github.com/oapi-codegen/runtime v1.1.2
|
||||
github.com/pelletier/go-toml/v2 v2.2.4
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
github.com/sirupsen/logrus v1.9.3
|
||||
>>>>>>> front
|
||||
)
|
||||
|
||||
require (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue