4 changed files with 44 additions and 11 deletions
@ -0,0 +1,39 @@ |
|||||
|
name: Build on master push |
||||
|
|
||||
|
on: |
||||
|
push: |
||||
|
branches: |
||||
|
- master |
||||
|
|
||||
|
env: |
||||
|
DOCKER_CLI_EXPERIMENTAL: enabled |
||||
|
|
||||
|
jobs: |
||||
|
build: |
||||
|
name: Build Docker image |
||||
|
runs-on: ubuntu-18.04 |
||||
|
env: |
||||
|
VERSION: 1.16.0 |
||||
|
steps: |
||||
|
- name: Login to Docker Hub |
||||
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u lukechilds --password-stdin |
||||
|
|
||||
|
- name: Checkout project |
||||
|
uses: actions/checkout@v2 |
||||
|
|
||||
|
- name: Set up QEMU |
||||
|
uses: docker/setup-qemu-action@v1 |
||||
|
id: qemu |
||||
|
|
||||
|
- name: Setup Docker buildx action |
||||
|
uses: docker/setup-buildx-action@v1 |
||||
|
id: buildx |
||||
|
|
||||
|
- name: Run Docker buildx |
||||
|
run: | |
||||
|
docker buildx build \ |
||||
|
--platform linux/amd64,linux/arm64 \ |
||||
|
--build-arg VERSION=$VERSION \ |
||||
|
--tag lukechilds/electrumx:v$VERSION \ |
||||
|
--tag lukechilds/electrumx:latest \ |
||||
|
--output "type=registry" . |
@ -1,7 +0,0 @@ |
|||||
sudo: required |
|
||||
services: |
|
||||
- docker |
|
||||
script: docker build -t electrumx . |
|
||||
notifications: |
|
||||
email: |
|
||||
on_success: never |
|
@ -1 +0,0 @@ |
|||||
1.16.0 |
|
Loading…
Reference in new issue