Skip to content

Commit dcf88e6

Browse files
committed
Increment version to 0.0.2
1 parent 6c49840 commit dcf88e6

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/build.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,24 @@ jobs:
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
38+
id: check_version
3739
run: |
3840
if aws ecr describe-images \
3941
--repository-name asyncdb \
4042
--image-ids imageTag=$VERSION \
4143
--region eu-west-2 \
42-
--query 'imageDetails[0].imageTags[0]' \
43-
--output text 2>/dev/null | grep -q "$VERSION"; then
44+
--query 'imageDetails[0].imageTags[0]'
45+
then
4446
echo "Image version $VERSION already exists in ECR."
47+
echo "publish=false" >> $GITHUB_OUTPUT
48+
else
49+
echo "Publishing..."
4550
echo "publish=true" >> $GITHUB_OUTPUT
46-
else
47-
echo "publish=false" >> $GITHUB_OUTPUT
48-
fi
51+
fi
4952
env:
5053
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
5154
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.1
1+
0.0.2

0 commit comments

Comments
 (0)