Skip to content

Commit

Permalink
Better docker tags + main building docker
Browse files Browse the repository at this point in the history
  • Loading branch information
ikatson committed Aug 29, 2024
1 parent 8aeb3c3 commit c139697
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/release-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Release binaries for Linux and Docker

on:
push:
branches:
- main
tags:
- "v*.*.*"

Expand Down Expand Up @@ -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: |
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit c139697

Please sign in to comment.