Commit 41d9188 1 parent 82950a8 commit 41d9188 Copy full SHA for 41d9188
File tree 2 files changed +14
-11
lines changed
2 files changed +14
-11
lines changed Original file line number Diff line number Diff line change 16
16
description : ' Build PGLite packages'
17
17
push :
18
18
branches : ['main']
19
- pull_request :
19
+ # TMP DISABLE
20
+ # pull_request:
20
21
21
22
jobs :
22
23
stylecheck :
Original file line number Diff line number Diff line change @@ -34,20 +34,22 @@ jobs:
34
34
id : set-image-name
35
35
run : |
36
36
echo "IMGNAME=${{ env.DOCKERHUB_REPO }}/${{ env.IMAGE_NAME }}" >> $GITHUB_ENV
37
- echo "IMGTAG=${{ env.PG_VERSION }}- ${{ env.SDK_VERSION }}" >> $GITHUB_ENV
37
+ echo "IMGTAG=${{ env.PG_VERSION }}_ ${{ env.SDK_VERSION }}" >> $GITHUB_ENV
38
38
39
- - name : Check if image exists already
40
- id : image-exists
41
- run : |
42
- docker manifest inspect ${{ env.IMGNAME }}:${{ env.IMGTAG }} > /dev/null 2>&1 && echo "exists=true" || echo "exists=false"
39
+ - name : Check if image exists test
43
40
continue-on-error : true
44
- shell : bash
41
+ run : docker manifest inspect ${{ env.DOCKERHUB_REPO }}/${{ env.IMAGE_NAME }}:${{ env.PG_VERSION }}-${{ env.SDK_VERSION }}
45
42
46
- - name : Set output for image- exists
47
- id : set-output
43
+ - name : Check if image exists
44
+ id : image-exists
48
45
run : |
49
- echo "::set-output name=exists::$(docker manifest inspect ${{ env.IMGNAME }}:${{ env.IMGTAG }} > /dev/null 2>&1 && echo true || echo false)"
50
- shell : bash
46
+ if docker manifest inspect ${{ env.DOCKERHUB_REPO }}/${{ env.IMAGE_NAME }}:${{ env.PG_VERSION }}-${{ env.SDK_VERSION }} > /dev/null 2>&1; then
47
+ echo "exists=true" >> $GITHUB_ENV
48
+ echo "::set-output name=exists::true"
49
+ else
50
+ echo "exists=false" >> $GITHUB_ENV
51
+ echo "::set-output name=exists::false"
52
+ fi
51
53
52
54
- uses : actions/checkout@v4
53
55
if : steps.image-exists.outputs.exists == 'false'
You can’t perform that action at this time.
0 commit comments