From e1219a0f2dc97492a88197ec900fb734a560735d Mon Sep 17 00:00:00 2001 From: Rui Wang Date: Tue, 27 Aug 2024 14:25:29 +0200 Subject: [PATCH] Create cicd-publish-api-image-pr.yaml --- .github/workflows/cicd-publish-api-image-pr.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/cicd-publish-api-image-pr.yaml diff --git a/.github/workflows/cicd-publish-api-image-pr.yaml b/.github/workflows/cicd-publish-api-image-pr.yaml new file mode 100644 index 000000000..745a1872e --- /dev/null +++ b/.github/workflows/cicd-publish-api-image-pr.yaml @@ -0,0 +1,16 @@ +name: Manually publish container image using the last commit SHA as image tag + +on: + workflow_dispatch: # run manually + pull_request: # run on pull requests + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Check out the code + uses: actions/checkout@v4 + + - name: Print the pr last commit SHA + run: echo "The commit SHA is ${{ github.event.pull_request.head.sha }}"