mirror of
https://github.com/sethforprivacy/p2pool-docker.git
synced 2025-12-08 08:23:34 -05:00
Migrate to build-push-action@v2
This commit is contained in:
58
.github/workflows/update-base-image.yml
vendored
58
.github/workflows/update-base-image.yml
vendored
@@ -5,34 +5,44 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
rebuild-container:
|
rebuild-container:
|
||||||
name: "Rebuild Container"
|
name: "Rebuild Container with the latest base image"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checkout the repo.
|
-
|
||||||
- name: "Checkout"
|
name: Set up QEMU
|
||||||
uses: "actions/checkout@v2"
|
uses: docker/setup-qemu-action@v1
|
||||||
|
-
|
||||||
# Get tag.
|
name: Set up Docker Buildx
|
||||||
- name: "Get Monero Release Tag"
|
uses: docker/setup-buildx-action@v1
|
||||||
id: get_tag
|
-
|
||||||
run: echo "::set-output name=tag::$(awk -F "=" '/MONERO_BRANCH=/ {print $2}' Dockerfile)"
|
name: Login to GitHub Packages Docker Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
# Build and push the repo.
|
|
||||||
- name: "Build and Push Docker images to Github Packages"
|
|
||||||
uses: docker/build-push-action@v1
|
|
||||||
with:
|
with:
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
registry: docker.pkg.github.com
|
registry: docker.pkg.github.com
|
||||||
repository: ${{ github.repository }}/simple-monerod
|
username: ${{ github.repository_owner }}
|
||||||
tags: latest, ${{ steps.get_tag.outputs.tag }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
add_git_labels: true
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
- name: "Build and push Docker images to Docker Hub"
|
uses: docker/login-action@v1
|
||||||
uses: docker/build-push-action@v1
|
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
repository: sethsimmons/simple-monerod
|
-
|
||||||
tags: latest, ${{ steps.get_tag.outputs.tag }}
|
name: "Get Monero Release Tag"
|
||||||
add_git_labels: true
|
id: get_tag
|
||||||
|
run: echo "::set-output name=tag::$(awk -F "=" '/MONERO_BRANCH=/ {print $2}' Dockerfile)"
|
||||||
|
-
|
||||||
|
name: Build and push to Docker Hub and Github Packages Docker Registry
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
docker.pkg.github.com:latest
|
||||||
|
docker.pkg.github.com:${{ steps.get_tag.outputs.tag }}
|
||||||
|
sethsimmons/simple-monerod:latest
|
||||||
|
sethsimmons/simple-monerod:${{ steps.get_tag.outputs.tag }}
|
||||||
|
-
|
||||||
|
name: Image digest
|
||||||
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
58
.github/workflows/update-image-on-push.yml
vendored
58
.github/workflows/update-image-on-push.yml
vendored
@@ -6,34 +6,44 @@ on:
|
|||||||
- 'Dockerfile'
|
- 'Dockerfile'
|
||||||
jobs:
|
jobs:
|
||||||
rebuild-container:
|
rebuild-container:
|
||||||
name: "Rebuild Container"
|
name: "Rebuild Container with the latest base image"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
# Checkout the repo.
|
-
|
||||||
- name: "Checkout"
|
name: Set up QEMU
|
||||||
uses: "actions/checkout@v2"
|
uses: docker/setup-qemu-action@v1
|
||||||
|
-
|
||||||
# Get tag.
|
name: Set up Docker Buildx
|
||||||
- name: "Get Monero Release Tag"
|
uses: docker/setup-buildx-action@v1
|
||||||
id: get_tag
|
-
|
||||||
run: echo "::set-output name=tag::$(awk -F "=" '/MONERO_BRANCH=/ {print $2}' Dockerfile)"
|
name: Login to GitHub Packages Docker Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
# Build and push the repo.
|
|
||||||
- name: "Build and Push Docker images to Github Packages"
|
|
||||||
uses: docker/build-push-action@v1
|
|
||||||
with:
|
with:
|
||||||
username: ${{ github.actor }}
|
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
registry: docker.pkg.github.com
|
registry: docker.pkg.github.com
|
||||||
repository: ${{ github.repository }}/simple-monerod
|
username: ${{ github.repository_owner }}
|
||||||
tags: latest, ${{ steps.get_tag.outputs.tag }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
add_git_labels: true
|
-
|
||||||
|
name: Login to DockerHub
|
||||||
- name: "Build and push Docker images to Docker Hub"
|
uses: docker/login-action@v1
|
||||||
uses: docker/build-push-action@v1
|
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
repository: sethsimmons/simple-monerod
|
-
|
||||||
tags: latest, ${{ steps.get_tag.outputs.tag }}
|
name: "Get Monero Release Tag"
|
||||||
add_git_labels: true
|
id: get_tag
|
||||||
|
run: echo "::set-output name=tag::$(awk -F "=" '/MONERO_BRANCH=/ {print $2}' Dockerfile)"
|
||||||
|
-
|
||||||
|
name: Build and push to Docker Hub and Github Packages Docker Registry
|
||||||
|
id: docker_build
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
tags: |
|
||||||
|
docker.pkg.github.com:latest
|
||||||
|
docker.pkg.github.com:${{ steps.get_tag.outputs.tag }}
|
||||||
|
sethsimmons/simple-monerod:latest
|
||||||
|
sethsimmons/simple-monerod:${{ steps.get_tag.outputs.tag }}
|
||||||
|
-
|
||||||
|
name: Image digest
|
||||||
|
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||||
Reference in New Issue
Block a user