Skip to content

Commit

Permalink
ci: allow pushing to docker hub using custom branch
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Sep 15, 2024
1 parent 32af9b3 commit d76ec60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
tag:
description: Docker tag to use
required: true
branch:
description: Branch to use (optional)
required: false

jobs:
build:
Expand All @@ -17,6 +20,8 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch || github.ref_name }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit d76ec60

Please sign in to comment.