mirror of
https://github.com/sethforprivacy/p2pool-docker.git
synced 2026-01-22 14:42:53 -05:00
Create update-base-image.yml
This commit is contained in:
37
.github/workflows/update-base-image.yml
vendored
Normal file
37
.github/workflows/update-base-image.yml
vendored
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: "Update Image and Push to Github Packages and Docker Hub"
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 12 * * *" # Run every day at noon.
|
||||||
|
jobs:
|
||||||
|
rebuild-container:
|
||||||
|
name: "Rebuild Container"
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
# Checkout the repo.
|
||||||
|
- name: "Checkout"
|
||||||
|
uses: "actions/checkout@v2"
|
||||||
|
|
||||||
|
# Get tag.
|
||||||
|
- name: "Get Monero Release Tag"
|
||||||
|
id: get_tag
|
||||||
|
run: echo "::set-output name=tag::$(awk -F "=" '/MONERO_BRANCH=/ {print $2}' Dockerfile)"
|
||||||
|
|
||||||
|
# Build and push the repo.
|
||||||
|
- name: "Build and Push Docker images to Github Packages"
|
||||||
|
uses: docker/build-push-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
registry: docker.pkg.github.com
|
||||||
|
repository: ${{ github.repository }}/simple-monerod
|
||||||
|
tags: latest, ${{ steps.get_tag.outputs.tag }}
|
||||||
|
add_git_labels: true
|
||||||
|
|
||||||
|
- name: "Build and push Docker images to Docker Hub"
|
||||||
|
uses: docker/build-push-action@v1
|
||||||
|
with:
|
||||||
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
repository: sethsimmons/simple-monerod
|
||||||
|
tags: latest, ${{ steps.get_tag.outputs.tag }}
|
||||||
|
add_git_labels: true
|
||||||
Reference in New Issue
Block a user