Skip to content

Commit

Permalink
ci(docker): add linux/risv64 for v2raya-gui
Browse files Browse the repository at this point in the history
  • Loading branch information
Markson Hon committed Nov 24, 2024
1 parent c45063a commit 8da5efd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Build & Release v2rayA

on:
workflow_dispatch:
inputs:
tag:
type: string
required: true

jobs:
Build_v2rayA_Web:
runs-on: ubuntu-22.04
Expand Down Expand Up @@ -124,13 +122,11 @@ jobs:
go build -tags "with_gvisor" -o ../v2raya_binaries/v2raya_${filename}_${env:VERSION} -ldflags="-X github.com/v2rayA/v2rayA/conf.Version=${env:VERSION} -s -w" -trimpath
Set-Location -Path ..
}
- name: Upload Artifact
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
path: |
v2raya_binaries/*
Build_Windows_Installers:
runs-on: windows-latest
needs: [Build_v2rayA_Binaries]
Expand Down Expand Up @@ -400,7 +396,6 @@ jobs:
--data '{"purge_everything":true}'
Build_v2ray_Debian_Packages:
runs-on: ubuntu-22.04

steps:
- name: Install Tools
run: |
Expand Down Expand Up @@ -544,7 +539,6 @@ jobs:
run: |
echo "V2RAY_VERSION=$V2RAY_VERSION" >> ./v2ray_packages_version.txt
echo "XRAY_VERSION=$XRAY_VERSION" >> ./xray_packages_version.txt
- name: Upload Artifact
uses: nanoufo/action-upload-artifacts-and-release-assets@v2
with:
Expand All @@ -556,7 +550,6 @@ jobs:
Build_APT_Repository_and_AUR:
runs-on: ubuntu-22.04
needs: [Build_v2rayA_Binaries, Build_Linux_Packages, Build_v2ray_Debian_Packages]

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -639,7 +632,6 @@ jobs:
Release_to_Homebrew:
runs-on: ubuntu-22.04
needs: [Build_v2rayA_Binaries]

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -694,7 +686,6 @@ jobs:
Release_v2rayA_to_Docker:
runs-on: ubuntu-22.04
needs: [GitHub_Release]

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -746,7 +737,6 @@ jobs:
Release_v2rayA_GUI_to_Docker:
runs-on: ubuntu-22.04
needs: [Build_v2rayA_Web]

steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -789,7 +779,7 @@ jobs:
context: .
builder: ${{ steps.buildx.outputs.name }}
file: install/docker/Dockerfile.GUI.Action
platforms: linux/arm,linux/arm64,linux/amd64
platforms: linux/arm,linux/arm64,linux/amd64,linux/risv64
push: true
tags: |
mzz2017/v2raya-gui:latest
Expand All @@ -799,7 +789,6 @@ jobs:
Submit_to_Microsoft_winget:
runs-on: windows-latest
needs: [GitHub_Release]

steps:
- uses: actions/checkout@v4
with:
Expand Down
8 changes: 5 additions & 3 deletions install/docker/Dockerfile.GUI.Action
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM nginx:stable-alpine
WORKDIR /build
COPY ./web /usr/share/nginx/html
FROM alpine:stable
WORKDIR /
RUN apk add --no-cache mini_httpd
COPY ./web /usr/share/v2raya-web
ENTRYPOINT ["/usr/sbin/mini_httpd", "-d", "/usr/share/v2raya-web", "-p", "80"]
EXPOSE 80

0 comments on commit 8da5efd

Please sign in to comment.