Skip to content

Commit

Permalink
test: image with ts
Browse files Browse the repository at this point in the history
  • Loading branch information
redr0bin committed May 19, 2022
1 parent 0aa144e commit 0344093
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ jobs:
run: |
branch=master
sha=$(git rev-list -n 1 ${{ github.ref_name }} | cut -c1-8)
source_image=$(curl -s -H "Authorization: Bearer ${{ secrets.GHCR_PAT }}" https://ghcr.io/v2/redr0bin/test/tags/list | jq -r --arg sha ${sha} -c '.tags[] | select(.|test("$sha"))')
echo ${sha}
source_image=$(curl -s -H "Authorization: Bearer ${{ secrets.GHCR_PAT }}" https://ghcr.io/v2/redr0bin/test/tags/list | jq -r --arg sha "${sha}" -c '.tags[] | select(.|test($sha))')
echo ${source_image}
echo "::set-output name=IMAGE_TAG::${source_image}"
- name: Set up Docker Buildx
Expand Down

0 comments on commit 0344093

Please sign in to comment.