cicd: build auth using actions
All checks were successful
Build and Deploy Go App / build (push) Successful in 6m39s
Build and Deploy Go App / deploy (push) Successful in 27s

This commit is contained in:
nihonium 2025-11-27 06:35:43 +03:00
parent 4c74315291
commit e98d2c6509
Signed by: nihonium
GPG key ID: 0251623741027CFC
2 changed files with 23 additions and 5 deletions

View file

@ -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: