mirror of
https://github.com/sethforprivacy/p2pool-docker.git
synced 2025-12-06 15:52:37 -05:00
Add daily CI
This commit is contained in:
50
.github/workflows/update-daily.yml
vendored
Normal file
50
.github/workflows/update-daily.yml
vendored
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
name: "Update image and push to Github Packages and Docker Hub daily"
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 12 * * *" # Run every day at noon.
|
||||||
|
workflow_dispatch:
|
||||||
|
jobs:
|
||||||
|
rebuild-container:
|
||||||
|
name: "Rebuild Container with the latest base image"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1.5.1
|
||||||
|
-
|
||||||
|
name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v1.10.0
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.repository_owner }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
|
uses: docker/login-action@v1.10.0
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
- name: "Checkout repository"
|
||||||
|
uses: "actions/checkout@v2.3.4"
|
||||||
|
-
|
||||||
|
name: Build and push to Docker Hub and Github Packages Docker Registry
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2.6.1
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
ghcr.io/${{ github.repository_owner }}/p2pool:latest
|
||||||
|
${{ secrets.DOCKER_USERNAME }}/p2pool:latest
|
||||||
|
labels: |
|
||||||
|
org.opencontainers.image.source=${{ github.event.repository.html_url }}
|
||||||
|
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
|
||||||
|
org.opencontainers.image.revision=${{ github.sha }}
|
||||||
|
-
|
||||||
|
name: Scan new image and output results
|
||||||
|
uses: Azure/container-scan@v0
|
||||||
|
with:
|
||||||
|
image-name: ${{ secrets.DOCKER_USERNAME }}/p2pool:latest
|
||||||
|
severity-threshold: HIGH
|
||||||
|
-
|
||||||
|
name: Image digest
|
||||||
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
@@ -22,7 +22,7 @@ services:
|
|||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
container_name: p2pool
|
container_name: p2pool
|
||||||
volumes:
|
volumes:
|
||||||
- p2pool-data:/home/monero
|
- p2pool-data:/home/p2pool
|
||||||
ports:
|
ports:
|
||||||
- 3333:3333
|
- 3333:3333
|
||||||
- 37889:37889
|
- 37889:37889
|
||||||
|
|||||||
Reference in New Issue
Block a user