Skip to content

Commit c74bb0a

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

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.github/workflows/build.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ 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
@@ -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 }}

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)