|
@ -14,9 +14,6 @@ jobs: |
|
|
build: |
|
|
build: |
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
|
steps: |
|
|
steps: |
|
|
- uses: actions/setup-go@v2 |
|
|
|
|
|
with: |
|
|
|
|
|
go-version: "1.15" |
|
|
|
|
|
- uses: actions/checkout@master |
|
|
- uses: actions/checkout@master |
|
|
- name: Prepare |
|
|
- name: Prepare |
|
|
id: prep |
|
|
id: prep |
|
@ -37,6 +34,11 @@ jobs: |
|
|
fi |
|
|
fi |
|
|
echo ::set-output name=tags::${TAGS} |
|
|
echo ::set-output name=tags::${TAGS} |
|
|
|
|
|
|
|
|
|
|
|
- name: Set up QEMU |
|
|
|
|
|
uses: docker/setup-qemu-action@master |
|
|
|
|
|
with: |
|
|
|
|
|
platforms: all |
|
|
|
|
|
|
|
|
- name: Set up Docker Buildx |
|
|
- name: Set up Docker Buildx |
|
|
uses: docker/setup-buildx-action@v1 |
|
|
uses: docker/setup-buildx-action@v1 |
|
|
|
|
|
|
|
@ -47,14 +49,11 @@ jobs: |
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }} |
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }} |
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }} |
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }} |
|
|
|
|
|
|
|
|
- name: Build Tendermint |
|
|
|
|
|
run: | |
|
|
|
|
|
make build-linux && cp build/tendermint DOCKER/tendermint |
|
|
|
|
|
|
|
|
|
|
|
- name: Publish to Docker Hub |
|
|
- name: Publish to Docker Hub |
|
|
uses: docker/build-push-action@v2 |
|
|
uses: docker/build-push-action@v2 |
|
|
with: |
|
|
with: |
|
|
context: ./DOCKER |
|
|
|
|
|
|
|
|
context: . |
|
|
file: ./DOCKER/Dockerfile |
|
|
file: ./DOCKER/Dockerfile |
|
|
|
|
|
platforms: linux/amd64,linux/arm64 |
|
|
push: ${{ github.event_name != 'pull_request' }} |
|
|
push: ${{ github.event_name != 'pull_request' }} |
|
|
tags: ${{ steps.prep.outputs.tags }} |
|
|
tags: ${{ steps.prep.outputs.tags }} |