mirror of
https://github.com/ivuorinen/docker-xmrig.git
synced 2026-02-12 15:48:15 +00:00
chore: tweak build workflow
This commit is contained in:
25
.github/workflows/build.yaml
vendored
25
.github/workflows/build.yaml
vendored
@@ -1,9 +1,14 @@
|
|||||||
name: Build
|
name: Build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
paths-ignore:
|
||||||
- "main"
|
- ".github/**"
|
||||||
|
- "LICENSE"
|
||||||
|
- ".editorconfig"
|
||||||
|
- "deployment.yaml"
|
||||||
|
- "renovate.json"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY_IMAGE: ivuorinen/docker-xmrig
|
REGISTRY_IMAGE: ivuorinen/docker-xmrig
|
||||||
@@ -58,6 +63,12 @@ jobs:
|
|||||||
path: /tmp/digests/*
|
path: /tmp/digests/*
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
- name: Push image to GHCR
|
||||||
|
continue-on-error: true
|
||||||
|
run: |
|
||||||
|
docker buildx imagetools create \
|
||||||
|
--tag ghcr.io/${{ env.REGISTRY_IMAGE }}:latest \
|
||||||
|
${{ env.REGISTRY_IMAGE }}:latest
|
||||||
|
|
||||||
merge:
|
merge:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -90,7 +101,15 @@ jobs:
|
|||||||
- name: Inspect image
|
- name: Inspect image
|
||||||
run: |
|
run: |
|
||||||
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
|
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
|
||||||
- name: Update repo description
|
|
||||||
|
update_description:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
continue-on-error: true
|
||||||
|
needs:
|
||||||
|
- merge
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Update DockerHub repo description
|
||||||
uses: peter-evans/dockerhub-description@v3
|
uses: peter-evans/dockerhub-description@v3
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||||
|
|||||||
Reference in New Issue
Block a user