Add GH workflow for docker build and push (#186)

This commit is contained in:
Lee *!* Clagett
2025-10-16 23:01:56 -04:00
committed by Lee *!* Clagett
parent 8955547536
commit 3d12cc1c06
4 changed files with 103 additions and 45 deletions

33
.github/workflows/docker-build.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Build+Push Daemon/Admin Docker Image
on:
push:
branches: [ "master" ]
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build Docker image
run: docker build --no-cache --tag vtnerd/monero-lws:master .
- name: Add additional tags
run: docker image tag vtnerd/monero-lws:master ghcr.io/vtnerd/monero-lws:master
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push to GitHub Container Registry
run: docker push -a ghcr.io/vtnerd/monero-lws
- name: Login to Docker.io
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_VTNERD_TOKEN }}
- name: Push to Docker.io
run: docker push -a vtnerd/monero-lws