Skip to content

Commit 41999dc

Browse files
committed
change name
1 parent adf668a commit 41999dc

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.github/workflows/cd.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,21 +39,21 @@ jobs:
3939
run: sbt clean stage
4040

4141
- name: package
42-
run: jpackage --name https-proxy --input target/universal/stage/lib --main-jar https-proxy.https-proxy-${{ inputs.version }}.jar --main-class Main --type app-image
42+
run: jpackage --name log-http-proxy --input target/universal/stage/lib --main-jar log-http-proxy.log-http-proxy-${{ inputs.version }}.jar --main-class Main --type app-image
4343

4444
- name: Upload macOS artifact
4545
if: matrix.platform.artifact_os_name == 'macos'
4646
uses: actions/upload-artifact@v4
4747
with:
48-
name: https-proxy-${{ matrix.platform.artifact_os_name }}-${{ inputs.version }}
49-
path: https-proxy.app
48+
name: log-http-proxy-${{ matrix.platform.artifact_os_name }}-${{ inputs.version }}
49+
path: log-http-proxy.app
5050
if-no-files-found: error
5151
- name: Upload Linux/Windows artifact
5252
if: matrix.platform.artifact_os_name != 'macos'
5353
uses: actions/upload-artifact@v4
5454
with:
55-
name: https-proxy-${{ matrix.platform.artifact_os_name }}-${{ inputs.version }}
56-
path: https-proxy
55+
name: log-http-proxy-${{ matrix.platform.artifact_os_name }}-${{ inputs.version }}
56+
path: log-http-proxy
5757
if-no-files-found: error
5858

5959
create_release:
@@ -70,9 +70,9 @@ jobs:
7070
run: |
7171
mkdir -p compressed_artifacts
7272
cd artifacts
73-
zip -r ../compressed_artifacts/https-proxy-macos-${{ needs.build_and_push.outputs.version }}.zip https-proxy-macos-*
74-
zip -r ../compressed_artifacts/https-proxy-ubuntu-${{ needs.build_and_push.outputs.version }}.zip https-proxy-ubuntu-*
75-
zip -r ../compressed_artifacts/https-proxy-windows-${{ needs.build_and_push.outputs.version }}.zip https-proxy-windows-*
73+
zip -r ../compressed_artifacts/log-http-proxy-macos-${{ needs.build_and_push.outputs.version }}.zip log-http-proxy-macos-*
74+
zip -r ../compressed_artifacts/log-http-proxy-ubuntu-${{ needs.build_and_push.outputs.version }}.zip log-http-proxy-ubuntu-*
75+
zip -r ../compressed_artifacts/log-http-proxy-windows-${{ needs.build_and_push.outputs.version }}.zip log-http-proxy-windows-*
7676
7777
- name: Create Draft Release and Upload Assets
7878
uses: softprops/action-gh-release@v2

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Universal / mappings := {
1818
lazy val root = project
1919
.in(file("."))
2020
.settings(
21-
name := "https-proxy",
21+
name := "log-http-proxy",
2222
version := "0.1.0",
2323
scalaVersion := scala3Version,
2424
mainClass := Some("Main"),

docker/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
FROM eclipse-temurin:21-jdk-alpine
22
WORKDIR /server
33

4-
CMD ["/bin/bash", "/server/bin/app"]
4+
CMD ["/bin/bash", "bin/log-http-proxy"]
55

66

77
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
88
&& echo "Asia/Shanghai" > /etc/timezone
99

1010
RUN apk update && apk add --no-cache bash
1111

12-
VOLUME /server/config
13-
1412
COPY ./app /server/

0 commit comments

Comments
 (0)