This commit is contained in:
Luke Childs 2021-10-12 22:08:07 +01:00
parent 3da7e9d132
commit 8edee25d03

View File

@ -2,8 +2,8 @@ name: Build on master push
on: on:
push: push:
# branches: branches:
# - master - master
env: env:
DOCKER_CLI_EXPERIMENTAL: enabled DOCKER_CLI_EXPERIMENTAL: enabled
@ -16,7 +16,7 @@ jobs:
VERSION: 1.16.0 VERSION: 1.16.0
steps: steps:
- name: Login to Docker Hub - name: Login to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_HUB_USER }}" --password-stdin run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u lukechilds --password-stdin
- name: Checkout project - name: Checkout project
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -34,6 +34,6 @@ jobs:
docker buildx build \ docker buildx build \
--platform linux/amd64,linux/arm64 \ --platform linux/amd64,linux/arm64 \
--build-arg VERSION=$VERSION \ --build-arg VERSION=$VERSION \
--tag ${{ secrets.DOCKER_HUB_USER }}/electrs:v$VERSION \ --tag lukechilds/electrumx:v$VERSION \
--tag ${{ secrets.DOCKER_HUB_USER }}/electrs:latest \ --tag lukechilds/electrumx:latest \
--output "type=registry" . --output "type=registry" .