Compare commits
No commits in common. "ee15139fdbc8c54f67ea83dfb333e524616a7878" and "522e7554fedd69837d0c130afdd5b89498ab68ab" have entirely different histories.
ee15139fdb
...
522e7554fe
3 changed files with 1 additions and 53 deletions
|
|
@ -1,49 +0,0 @@
|
|||
name: Build (backend build only)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- dev-ars
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
# Build backend
|
||||
- uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: '^1.25'
|
||||
|
||||
- name: Build backend
|
||||
run: |
|
||||
cd modules/backend
|
||||
go build -o nyanimedb .
|
||||
tar -czvf nyanimedb-backend.tar.gz nyanimedb
|
||||
|
||||
- name: Upload built backend to artifactory
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: nyanimedb-backend.tar.gz
|
||||
path: modules/backend/nyanimedb-backend.tar.gz
|
||||
|
||||
# Build Docker images
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ vars.REGISTRY }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
|
||||
- name: Build and push backend image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .
|
||||
file: Dockerfiles/Dockerfile_backend
|
||||
push: true
|
||||
tags: meowgit.nekoea.red/nihonium/nyanimedb-backend:latest
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
name: Build (frontend build only)
|
||||
name: Build and Deploy (frontend build only)
|
||||
|
||||
on:
|
||||
push:
|
||||
|
|
|
|||
|
|
@ -30,9 +30,6 @@ server {
|
|||
}
|
||||
|
||||
location /media/ {
|
||||
limit_except GET {
|
||||
deny all;
|
||||
}
|
||||
rewrite ^/media/(.*)$ /$1 break;
|
||||
proxy_pass http://nyanimedb-images:8000/;
|
||||
proxy_http_version 1.1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue