Skip to content

Commit 5c0616f

Browse files
committed
Move config.json to .config
1 parent ae43a78 commit 5c0616f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ name: Create and publish a Docker image
44
on:
55
push:
66
tags:
7-
- "*"
7+
- "v*"
88

99
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
1010
env:

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ RUN wget https://github.com/xmrig/xmrig/releases/download/v${VERSION}/xmrig-${VE
1717
echo "${SHA256SUM} xmrig-${VERSION}-linux-static-x64.tar.gz" | sha256sum -c && \
1818
tar -xzf xmrig-${VERSION}-linux-static-x64.tar.gz && \
1919
rm xmrig-${VERSION}-linux-static-x64.tar.gz && \
20-
mv xmrig-${VERSION} xmrig
20+
mv xmrig-${VERSION}/xmrig /usr/local/bin/xmrig && \
21+
mkdir -p $HOME/.config && \
22+
mv xmrig-${VERSION}/config.json $HOME/.config/xmrig.json && \
23+
rm -rf xmrig-${VERSION}
2124

22-
WORKDIR /root/xmrig
23-
24-
ENTRYPOINT ["./xmrig"]
25+
ENTRYPOINT ["xmrig"]

0 commit comments

Comments
 (0)