mirror of
https://github.com/sethforprivacy/p2pool-docker.git
synced 2025-12-07 16:05:05 -05:00
Stop automatically rebuilding container each week
This commit is contained in:
59
.github/workflows/update-base-image.yml
vendored
59
.github/workflows/update-base-image.yml
vendored
@@ -1,59 +0,0 @@
|
|||||||
name: "Update image and push to Github Packages and Docker Hub weekly"
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 12 * * 1" # Run every Monday at noon.
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
rebuild-container:
|
|
||||||
name: "Rebuild Container with the latest base image"
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
-
|
|
||||||
name: Prepare outputs
|
|
||||||
id: prep
|
|
||||||
run: |
|
|
||||||
echo "::set-output name=created::$(date -u +'%Y-%m-%dT%H:%M:%SZ')"
|
|
||||||
-
|
|
||||||
name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3.2.0
|
|
||||||
with:
|
|
||||||
platforms: linux/arm64
|
|
||||||
-
|
|
||||||
name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v3.7.1
|
|
||||||
-
|
|
||||||
name: Login to GitHub Container Registry
|
|
||||||
uses: docker/login-action@v3.3.0
|
|
||||||
with:
|
|
||||||
registry: ghcr.io
|
|
||||||
username: ${{ github.repository_owner }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
-
|
|
||||||
name: Login to DockerHub
|
|
||||||
uses: docker/login-action@v3.3.0
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
- name: "Checkout repository"
|
|
||||||
uses: "actions/checkout@v4"
|
|
||||||
-
|
|
||||||
name: "Get p2pool Release Tag"
|
|
||||||
id: get_tag
|
|
||||||
run: echo "::set-output name=tag::$(awk -F "=" '/P2POOL_BRANCH=/ {print $2}' Dockerfile)"
|
|
||||||
-
|
|
||||||
name: Build and push to Docker Hub and GitHub Packages Docker Registry
|
|
||||||
id: docker_build
|
|
||||||
uses: docker/build-push-action@v6.9.0
|
|
||||||
with:
|
|
||||||
push: true
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
tags: |
|
|
||||||
ghcr.io/${{ github.repository_owner }}/p2pool:latest
|
|
||||||
ghcr.io/${{ github.repository_owner }}/p2pool:${{ steps.get_tag.outputs.tag }}
|
|
||||||
${{ secrets.DOCKER_USERNAME }}/p2pool:latest
|
|
||||||
${{ secrets.DOCKER_USERNAME }}/p2pool:${{ steps.get_tag.outputs.tag }}
|
|
||||||
labels: |
|
|
||||||
org.opencontainers.image.source=${{ github.event.repository.html_url }}
|
|
||||||
org.opencontainers.image.created=${{ steps.prep.outputs.created }}
|
|
||||||
org.opencontainers.image.revision=${{ github.sha }}
|
|
||||||
Reference in New Issue
Block a user