Skip to content

Commit

Permalink
Allow rebuild docker image for specific commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kezhenxu94 committed Dec 23, 2024
1 parent dd89e88 commit 9ddf151
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/publish-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ on:
- main
tags:
- v*.*.*
workflow_dispatch:
inputs:
ref:
description: 'Commit SHA or tag to build'
required: false
default: 'main'

jobs:
build-docker:
# if: github.repository == 'SkyAPM/R3'
if: github.repository == 'SkyAPM/R3'
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -32,6 +38,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.ref }}
submodules: true
- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
Expand Down Expand Up @@ -61,4 +68,4 @@ jobs:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 9ddf151

Please sign in to comment.