Skip to content

Commit

Permalink
fix config issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunop committed Jul 20, 2024
1 parent f2de6da commit b3950fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,14 @@ jobs:

- name: Deploy in server
uses: appleboy/[email protected]
env:
WORKINGDIR: ${{ secrets.WORKINGDIR }}
with:
host: ${{ secrets.REMOTE_HOST }}
username: ${{ secrets.REMOTE_USER }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script_stop: true
envs: WORKINGDIR
script: |
### Notice: run for develop ###
# Stop and remove existing container if it exists
Expand All @@ -61,7 +64,7 @@ jobs:
# Load the new image and run it
# It will failed, for test
docker load -i /tmp/image.tar
docker run -d --name sastlink -p 8080:8080 sast/sast-link
docker run --restart always -d --name sastlink -p 8080:8080 -v $WORKINGDIR:/sastlink/config sast/sast-link
- name: Send Success Message
if: ${{ success() }}
Expand Down
1 change: 0 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ RUN cd /sastlink && CGO_ENABLED=0 go build
FROM alpine

COPY --from=builder /sastlink /sastlink
COPY --from=builder /sastlink/config /config

# This container exposes port 8080 to the outside world
EXPOSE 8080
Expand Down

0 comments on commit b3950fa

Please sign in to comment.