File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
workflow_call :
6
6
7
+ concurrency :
8
+ group : build-and-push-image-${{ github.sha }}
9
+
7
10
jobs :
8
11
check-image-presence :
9
12
name : Check if images already exist
24
27
echo "Dev image with given tag already exists"
25
28
else
26
29
echo "Dev image does not exist. Build needed"
27
- echo "$(aws ecr describe-images --repository-name mavis/webapp --image-ids imageTag=${{ github.sha }})"
28
-
29
30
echo "BUILD_NEEDED=true" >> $GITHUB_ENV
30
31
fi
31
32
- name : Configure AWS Prod credentials
40
41
echo "Prod and dev images with given tag already exist. No build needed"
41
42
else
42
43
echo "At least one image does not exist. Build needed"
43
- echo "$(aws ecr describe-images --repository-name mavis/webapp --image-ids imageTag=${{ github.sha }})"
44
-
45
44
echo "BUILD_NEEDED=true" >> $GITHUB_OUTPUT
46
45
fi
47
46
You can’t perform that action at this time.
0 commit comments