build: pr upload binary artifacts (#358)

* build: upload artifacts on pr

* build: use head sha for docker revision
This commit is contained in:
Ludvig Lundgren 2022-07-17 18:55:38 +02:00 committed by GitHub
parent dfe2ac56a2
commit f961115dac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -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 }}

View file

@ -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/*