Compare commits
38 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e59156c24 | ||
|
|
d786e1ad08 | ||
|
|
bb0dc22630 | ||
|
|
d81701c4fa | ||
|
|
c4f5d93b8b | ||
|
|
6132aa36af | ||
|
|
49cc485866 | ||
|
|
4ed813cd2e | ||
|
|
9bcc2cc2a0 | ||
|
|
d3d8cc268d | ||
|
|
62dcf663ff | ||
|
|
b016dadb9d | ||
|
|
b962565ed6 | ||
|
|
20b0e246fd | ||
|
|
f1a7a053f4 | ||
|
|
359f35c53f | ||
|
|
ea3423d32a | ||
|
|
6542a3bb28 | ||
|
|
35d2f1ca0b | ||
|
|
565d5701be | ||
|
|
2eb78ab73c | ||
|
|
edf4647549 | ||
|
|
e87a348b90 | ||
|
|
c15b22c71a | ||
|
|
1c9f9c7803 | ||
|
|
89bdfdefd4 | ||
|
|
2974fd783f | ||
|
|
bd22b5a497 | ||
|
|
8f6408a92b | ||
|
|
20bc28fffa | ||
|
|
3c89e75a34 | ||
|
|
5594356166 | ||
|
|
cea08a59be | ||
|
|
f16ed1a39f | ||
|
|
66032fcf55 | ||
|
|
34a9d56726 | ||
|
|
a0880ad5b6 | ||
|
|
17e8e5914e |
17
.github/workflows/hub.yml
vendored
17
.github/workflows/hub.yml
vendored
@@ -12,25 +12,18 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
id: qemu
|
id: qemu
|
||||||
uses: docker/setup-qemu-action@v1
|
uses: docker/setup-qemu-action@v2
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
- name: Available platforms
|
- name: Available platforms
|
||||||
run: echo ${{ steps.qemu.outputs.platforms }}
|
run: echo ${{ steps.qemu.outputs.platforms }}
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v1
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Set up build cache
|
|
||||||
uses: actions/cache@v2
|
|
||||||
with:
|
|
||||||
path: /tmp/.buildx-cache
|
|
||||||
key: ${{ runner.os }}-buildx-${{ github.sha }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-buildx-
|
|
||||||
- name: Parse the git tag
|
- name: Parse the git tag
|
||||||
id: get_tag
|
id: get_tag
|
||||||
run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3)
|
run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3)
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_TOKEN }}
|
password: ${{ secrets.DOCKER_TOKEN }}
|
||||||
@@ -41,12 +34,10 @@ jobs:
|
|||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
#platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64
|
|
||||||
#platforms: linux/amd64,linux/arm64,linux/arm/v6,linux/arm/v7
|
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||||
push: true
|
push: true
|
||||||
# cache-from: type=local,src=/tmp/.buildx-cache
|
# cache-from: type=local,src=/tmp/.buildx-cache
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
ARG GO_VERSION=1.16.2
|
ARG GO_VERSION=1.20.6
|
||||||
FROM golang:${GO_VERSION}-alpine AS builder
|
FROM golang:${GO_VERSION}-alpine AS builder
|
||||||
RUN apk update && apk add alpine-sdk git && rm -rf /var/cache/apk/*
|
RUN apk update && apk add alpine-sdk git && rm -rf /var/cache/apk/*
|
||||||
RUN mkdir -p /api
|
RUN mkdir -p /api
|
||||||
@@ -9,9 +9,11 @@ RUN go mod download
|
|||||||
COPY ./server .
|
COPY ./server .
|
||||||
RUN go build -o ./app ./main.go
|
RUN go build -o ./app ./main.go
|
||||||
|
|
||||||
FROM node:14 as build-stage
|
FROM node:18-alpine as build-stage
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY ./ui/package*.json ./
|
COPY ./ui/package*.json ./
|
||||||
|
RUN apk add --no-cache autoconf automake build-base nasm libc6-compat python3 py3-pip make g++ libpng-dev zlib-dev pngquant
|
||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
COPY ./ui .
|
COPY ./ui .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
@@ -63,8 +63,6 @@
|
|||||||
"eslint-plugin-vue": "^9.9.0",
|
"eslint-plugin-vue": "^9.9.0",
|
||||||
"express": "^4.18.2",
|
"express": "^4.18.2",
|
||||||
"hygen": "^6.2.11",
|
"hygen": "^6.2.11",
|
||||||
"imagemin-lint-staged": "^0.5.1",
|
|
||||||
"lint-staged": "^13.1.1",
|
|
||||||
"markdownlint-cli": "^0.33.0",
|
"markdownlint-cli": "^0.33.0",
|
||||||
"npm-run-all": "^4.1.1",
|
"npm-run-all": "^4.1.1",
|
||||||
"sass": "^1.58.0",
|
"sass": "^1.58.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user