mirror of
https://codeberg.org/wownero/wownero-lws
synced 2026-01-09 23:25:16 -08:00
Add GH workflow for docker build and push (#186)
This commit is contained in:
committed by
Lee *!* Clagett
parent
8955547536
commit
3d12cc1c06
33
.github/workflows/docker-build.yml
vendored
Normal file
33
.github/workflows/docker-build.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user