mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
build: autobrrctl and push to ghcr (#35)
This commit is contained in:
parent
b8d91b0e7a
commit
d22dd2fe84
2 changed files with 31 additions and 2 deletions
29
.github/workflows/release.yml
vendored
29
.github/workflows/release.yml
vendored
|
@ -41,4 +41,31 @@ jobs:
|
|||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
docker:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Get the tag name
|
||||
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Build and push
|
||||
id: docker_build
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
push: true
|
||||
tags: |
|
||||
ghcr.io/autobrr/autobrr:${{ env.TAG }}
|
||||
ghcr.io/autobrr/autobrr:latest
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue