wow
This commit is contained in:
parent
004e131181
commit
108cf60e0c
2 changed files with 1 additions and 52 deletions
51
.github/workflows/main.yml
vendored
51
.github/workflows/main.yml
vendored
|
|
@ -1,51 +0,0 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
name: Web Build
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: x86_64
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v5
|
|
||||||
|
|
||||||
- name: Set version
|
|
||||||
run: |
|
|
||||||
if [[ "${GITHUB_REF}" == refs/heads/main ]]; then
|
|
||||||
echo "RELEASE_VERSION=latest" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3
|
|
||||||
|
|
||||||
- name: Login to GHCR
|
|
||||||
uses: docker/login-action@v3
|
|
||||||
with:
|
|
||||||
registry: git.mizuki.guru
|
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Build and push Docker image
|
|
||||||
uses: docker/build-push-action@v3
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
file: ./Dockerfile
|
|
||||||
push: true
|
|
||||||
cache-from: type=gha
|
|
||||||
cache-to: type=gha,mode=max
|
|
||||||
tags: |
|
|
||||||
git.mizuki.guru/imnyang/imnya.ng:latest
|
|
||||||
git.mizuki.guru/imnyang/imnya.ng:${{ github.run_id }}
|
|
||||||
# update:
|
|
||||||
# runs-on: self-hosted
|
|
||||||
# steps:
|
|
||||||
# - name: Pull and restart container
|
|
||||||
# run: |
|
|
||||||
# docker-compose -f /home/neko/Git/imnya.ng/compose.yml pull web
|
|
||||||
# docker-compose -f /home/neko/Git/imnya.ng/compose.yml up -d web
|
|
||||||
# needs: build
|
|
||||||
|
|
@ -11,7 +11,7 @@ const nextConfig: NextConfig = {
|
||||||
images: {
|
images: {
|
||||||
remotePatterns: [new URL('https://api.imnya.ng/**')],
|
remotePatterns: [new URL('https://api.imnya.ng/**')],
|
||||||
},
|
},
|
||||||
output: 'standalone',
|
// output: 'standalone',
|
||||||
};
|
};
|
||||||
|
|
||||||
export default nextConfig;
|
export default nextConfig;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue