Compare commits

...

5 Commits

Author SHA1 Message Date
Patrice Ferlet
04ecc83421
Fixed the release event for action 2023-11-09 09:35:16 +01:00
Patrice Ferlet
509c724f8c
Rename the file 2023-11-09 09:32:07 +01:00
Patrice Ferlet
936bcfdf09
A bit of cleanup 2023-11-09 09:27:09 +01:00
Patrice Ferlet
85cf1bffbc
Build image on github
And push the image in ghcr.io registry. This implies that, later, we
will stop using docker.io registry.
2023-11-09 09:26:26 +01:00
Patrice Ferlet
2e5421c9f7
remove helm chart 2023-11-09 00:28:41 +01:00
4 changed files with 38 additions and 25 deletions

38
.github/workflows/docker-build.yaml vendored Normal file
View 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 }}

View File

@ -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; \

View File

@ -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

View File

@ -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"