Skip to content

Commit

Permalink
allow to release not just alpha but any branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Feb 1, 2024
1 parent 97a7f2c commit 7b19c7a
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
name: Build and Push Alpha
name: Build and Push branch

on:
workflow_dispatch:
inputs:
branchname:
description: 'Branch name'
required: true
default: 'alpha'

env:
PUID: '1000'
Expand Down Expand Up @@ -36,7 +41,7 @@ jobs:
platforms: linux/amd64,linux/arm/v7,linux/arm64
push: true
build-args: |
BRANCH=alpha
BRANCH=${{ github.event.inputs.branchname }}
tags: |
lycheeorg/lychee:testing-${{ github.run_id }}
Expand Down Expand Up @@ -128,4 +133,4 @@ jobs:
name: Retag image
run: |
crane auth login -u ${{ secrets.DOCKERHUB_USERNAME }} -p ${{ secrets.DOCKERHUB_TOKEN }} index.docker.io
crane tag lycheeorg/lychee:testing-${{ github.run_id }} alpha
crane tag lycheeorg/lychee:testing-${{ github.run_id }} ${{ github.event.inputs.branchname }}

0 comments on commit 7b19c7a

Please sign in to comment.