Better docker tags + main building docker

This commit is contained in:
Igor Katson 2024-08-29 16:32:22 +01:00
parent 536bd1fb7f
commit c923df4458
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5

View file

@ -2,6 +2,8 @@ name: Release binaries for Linux and Docker
on:
push:
branches:
- main
tags:
- "v*.*.*"
@ -69,6 +71,7 @@ jobs:
cp -l ${{ matrix.platform }}/rqbit rqbit-${{ steps.gen_artifact_key.outputs.key }}
- uses: softprops/action-gh-release@v1
if: ${{ github.ref_type == 'tag' }}
with:
generate_release_notes: true
files: |
@ -86,6 +89,17 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ikatson/rqbit
tags: |
type=ref,event=branch
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- uses: actions/download-artifact@v4
with:
name: linux-arm-v7
@ -114,7 +128,7 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: ikatson/rqbit:${{ github.ref_name }}
tags: ${{ steps.meta.outputs.tags }}
platforms: linux/amd64,linux/arm64,linux/arm/v7
context: target/cross/
file: docker/Dockerfile