mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
build: pr upload binary artifacts (#358)
* build: upload artifacts on pr * build: use head sha for docker revision
This commit is contained in:
parent
dfe2ac56a2
commit
f961115dac
2 changed files with 8 additions and 1 deletions
2
.github/workflows/docker.yml
vendored
2
.github/workflows/docker.yml
vendored
|
@ -47,7 +47,7 @@ jobs:
|
|||
build-args: |
|
||||
BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
|
||||
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}
|
||||
REVISION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.revision'] }}
|
||||
REVISION=${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Image digest
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
|
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
@ -4,6 +4,7 @@ on:
|
|||
push:
|
||||
tags:
|
||||
- '*'
|
||||
pull_request:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
@ -43,3 +44,9 @@ jobs:
|
|||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload assets
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: autobrr
|
||||
path: dist/*
|
Loading…
Add table
Add a link
Reference in a new issue