Skip to content

Commit 2f24974

Browse files
committed
check id
1 parent 9da085e commit 2f24974

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
with:
5050
repotag: amazon/aws-cli
5151
key: aws-cli-docker-image-sha-${{ github.sha }}
52-
5352
- run: docker pull amazon/aws-cli
5453

5554
test_restoring:
@@ -75,4 +74,18 @@ jobs:
7574
repotag: amazon/aws-cli
7675
key: aws-cli-docker-image-sha-${{ github.sha }}
7776

77+
- run: docker inspect amazon/aws-cli
78+
- run: echo ::set-output name=id::$(docker image ls -q amazon/aws-cli)
79+
id: cached
80+
7881
- run: docker pull amazon/aws-cli
82+
83+
- run: docker inspect amazon/aws-cli
84+
- run: echo ::set-output name=id::$(docker image ls -q amazon/aws-cli)
85+
id: latest
86+
87+
- run: |
88+
if [ ! ${{ steps.cached.outputs.id }} = ${{ steps.latest.outputs.id }} ];then
89+
echo cached != latest
90+
exit 1
91+
fi

0 commit comments

Comments
 (0)