File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 3131 id : get_version
3232 run : |
3333 VERSION=$(cat version)
34+ echo "Version: $VERSION"
3435 echo "VERSION=$VERSION" >> $GITHUB_ENV
3536
3637 - name : Check if version exists in ECR
@@ -39,13 +40,14 @@ jobs:
3940 --repository-name asyncdb \
4041 --image-ids imageTag=$VERSION \
4142 --region eu-west-2 \
42- --query 'imageDetails[0].imageTags[0]' \
43- --output text 2>/dev/null | grep -q "$VERSION"; then
43+ --query 'imageDetails[0].imageTags[0]'
44+ then
4445 echo "Image version $VERSION already exists in ECR."
46+ echo "publish=false" >> $GITHUB_OUTPUT
47+ else
48+ echo "Publishing..."
4549 echo "publish=true" >> $GITHUB_OUTPUT
46- else
47- echo "publish=false" >> $GITHUB_OUTPUT
48- fi
50+ fi
4951 env :
5052 AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
5153 AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Original file line number Diff line number Diff line change 1- 0.0.1
1+ 0.0.2
You can’t perform that action at this time.
0 commit comments