forked from Public/monero-gui
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Build
|
|
run-name: Build Docker Image
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
|
|
# Build image and push to container registry
|
|
docker-build:
|
|
runs-on: ubuntu-20.04
|
|
name: Build and Push
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Set up Docker BuildX
|
|
uses: docker/setup-buildx-action@v3
|
|
with:
|
|
config-inline: |
|
|
[registry."git.prettyhefty.com"]
|
|
|
|
- name: Login to Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: https://git.prettyhefty.com
|
|
username: ${{ gitea.repository_owner }}
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
|
|
|
- name: Setup environment
|
|
run: cp Dockerfile.linux Dockerfile
|
|
|
|
- name: Build and push
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: bill/monero:test
|
|
|
|
- name: sha256sum
|
|
run: shasum -a256 /workspace/Bill/monero-gui/build/release/bin/monero-wallet-gui
|
|
|
|
- name: test qml
|
|
run: xvfb-run -a /workspace/Bill/monero-gui/build/release/bin/monero-wallet-gui --test-qml |