Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
refactor: remove useless arg and env in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aiwantaozi authored and gitlawr committed Aug 30, 2023
1 parent 48a50c0 commit 1dbd956
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ jobs:
${{ github.event_name != 'pull_request' && format('type=registry,mode=max,oci-mediatypes=false,compression=gzip,ref={0}/build-cache:{1}-{2},ignore-error=true', env.REPO, matrix.target, matrix.task) || '' }}
build-args: |
SERVE_UI_INDEX=${{ startsWith(github.ref, 'refs/tags/') && 'file:///var/lib/walrus/ui' || 'https://walrus-ui-1303613262.cos.ap-guangzhou.myqcloud.com/latest/index.html' }}
SERVE_TEMPLATE_REFER=${{ startsWith(github.ref, 'refs/tags/') && 'release' || 'main' }}
- name: Setup Cosign
if: ${{ github.event_name != 'pull_request' }}
uses: sigstore/[email protected]
Expand Down
4 changes: 1 addition & 3 deletions pack/server/image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,8 @@ COPY /build/cli* /var/lib/walrus/cli/


ARG SERVE_UI_INDEX="file:///var/lib/walrus/ui"
ARG SERVE_TEMPLATE_REFER="release"
ENV SERVER_SETTING_SERVE_URL="" \
SERVER_SETTING_SERVE_UI_INDEX="${SERVE_UI_INDEX}" \
SERVER_SETTING_SERVE_TEMPLATE_REFER="${SERVE_TEMPLATE_REFER}"
SERVER_SETTING_SERVE_UI_INDEX="${SERVE_UI_INDEX}"
EXPOSE 80 443
VOLUME /var/run/walrus
COPY /image/ /
Expand Down

0 comments on commit 1dbd956

Please sign in to comment.