Skip to content

Commit

Permalink
test commit 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Water-Melon committed Jun 3, 2024
1 parent e11efb1 commit 88709dc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -597,9 +597,16 @@ jobs:
username: ${{ secrets.GHA_DOCKERHUB_PUSH_USER }}
password: ${{ secrets.GHA_KONG_ORG_DOCKERHUB_PUSH_TOKEN }}

- uses: actions/checkout@v3
- name: Get latest commit SHA on master
env:
REF: ${{ github.ref_name == '13096/merge' }}
run: |
echo "latest_sha=$(git ls-remote origin -h refs/heads/${{ github.event.inputs.default_branch }} | cut -f1)" >> $GITHUB_ENV
echo "latest_sha=$(git ls-remote origin -h refs/heads/kag4374 | cut -f1)" >> $GITHUB_ENV
git ls-remote origin -h refs/heads/kag4374 | cut -f1
echo ${{ github.ref_name }}
echo ${{ github.ref }}
echo ${{ env.REF }}
- name: Docker meta
id: meta
Expand All @@ -608,7 +615,7 @@ jobs:
images: ${{ needs.metadata.outputs.docker-repository }}
sep-tags: " "
tags: |
type=raw,value=latest,enable=${{ matrix.label == 'ubuntu' && github.ref_name == github.event.inputs.default_branch && github.sha == env.latest_sha }}
type=raw,value=latest,enable=${{ matrix.label == 'ubuntu' && github.ref_name == '13096/merge' && github.sha == env.latest_sha }}
type=match,enable=${{ github.event_name == 'workflow_dispatch' }},pattern=\d.\d,value=${{ github.event.inputs.version }}
type=match,enable=${{ github.event_name == 'workflow_dispatch' && matrix.label == 'ubuntu' }},pattern=\d.\d,value=${{ github.event.inputs.version }},suffix=
type=raw,enable=${{ github.event_name == 'workflow_dispatch' }},${{ github.event.inputs.version }}
Expand Down

0 comments on commit 88709dc

Please sign in to comment.