mirror of
https://github.com/metal3d/docker-xmrig.git
synced 2024-10-04 00:18:48 +03:00
Compare commits
5 Commits
03c3182f84
...
04ecc83421
Author | SHA1 | Date | |
---|---|---|---|
|
04ecc83421 | ||
|
509c724f8c | ||
|
936bcfdf09 | ||
|
85cf1bffbc | ||
|
2e5421c9f7 |
38
.github/workflows/docker-build.yaml
vendored
Normal file
38
.github/workflows/docker-build.yaml
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
name: Create and publish a Docker image
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
IMAGE_NAME: xmrig
|
||||
jobs:
|
||||
build-and-push-image:
|
||||
runs-on: ubuntu-latest
|
||||
# Sets the permissions granted to the `GITHUB_TOKEN` for the actions in this job.
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Log in to the Container registry
|
||||
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Extract metadata (tags, labels) for Docker
|
||||
id: meta
|
||||
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
@ -27,7 +27,6 @@ LABEL maintainer="Patrice Ferlet <metal3d@gmail.com>"
|
||||
|
||||
RUN set -xe; \
|
||||
apt update; \
|
||||
#apt -y install wget jq git build-essential cmake automake libtool autoconf; \
|
||||
apt install -y wget build-essential cmake automake libtool autoconf; \
|
||||
apt install -y gcc-9 g++-9; \
|
||||
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100; \
|
||||
|
@ -90,8 +90,6 @@ fi
|
||||
|
||||
OTHERS_OPTS=$OTHERS_OPTS" -p ${WORKERNAME}"
|
||||
|
||||
cat config.json
|
||||
|
||||
if [ "${CUDA}" == "true" ]; then
|
||||
OTHERS_OPTS=$OTHERS_OPTS" --cuda"
|
||||
jq '.cuda.enabled = true' config.json > config.json.tmp && mv config.json.tmp config.json
|
||||
|
22
index.yaml
22
index.yaml
@ -1,22 +0,0 @@
|
||||
apiVersion: v1
|
||||
entries:
|
||||
xmrig:
|
||||
- apiVersion: v1
|
||||
appVersion: "1.0"
|
||||
created: "2020-04-04T11:47:34.635848177+02:00"
|
||||
description: Xmmrig Monero Miner
|
||||
digest: 622f4e83f9a306c7aee0c46e6125f9022b8f42d83bd2eb14be38791a287e0551
|
||||
home: https://xmrig.com
|
||||
icon: https://xmrig.com/assets/img/xmrig-logo.svg
|
||||
maintainers:
|
||||
- email: metal3d@gmail.com
|
||||
name: Patrice Ferlet
|
||||
url: https://www.metal3d.org
|
||||
name: xmrig
|
||||
sources:
|
||||
- https://github.com/metal3d/xmrig-docker
|
||||
- https://github.com/xmrig/xmrig
|
||||
urls:
|
||||
- xmrig-0.3.2.tgz
|
||||
version: 0.3.2
|
||||
generated: "2020-04-04T11:47:34.635079725+02:00"
|
Loading…
Reference in New Issue
Block a user