CI: build docker images for devel branch

This commit is contained in:
alex.sharov 2023-04-26 12:57:48 +07:00
parent c89d409079
commit 6637c0bfa8
3 changed files with 43 additions and 3 deletions

40
.github/workflows/docker-branches.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: Docker branches
on:
push:
branches:
- devel
workflow_dispatch:
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: dockerhub-login
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB }}
password: ${{ secrets.DOCKERHUB_KEY }}
- name: ghcr-login
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: docker/setup-qemu-action@v2
- run: |
make release-dry-run
# docker image push --all-tags thorax/erigon
# docker image push --all-tags ghcr.io/ledgerwatch/erigon
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${GITHUB_REF##*/}
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }}
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }}

View File

@ -1,9 +1,7 @@
name: Check
name: Docker tags
on:
push:
branches:
- devel
tags:
- 'y*.*.*'
workflow_dispatch:

View File

@ -45,6 +45,8 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- run: echo ${{ steps.prepare.outputs.tag_name }}
- name: Run GoReleaser
run: |
make release