Skip to content

Commit d4738ff

Browse files
polRkblinkov
authored andcommitted
ci(docker): remove unnecessary code (#14520)
Signed-off-by: Vladislav Polyakov <me@polrk.com>
1 parent 5c6be8e commit d4738ff

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.github/workflows/docker_publish.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -98,33 +98,11 @@ jobs:
9898
docker logs local-ydb-test
9999
exit 1
100100
fi
101-
docker stop local-ydb-test
102-
docker rm local-ydb-test
101+
docker stop local-ydb-test || true
103102
104103
- name: Push docker image
105104
uses: docker/build-push-action@v4
106105
with:
107106
push: true
108107
tags: ${{ steps.meta.outputs.tags }}
109108
cache-to: type=s3,name=local_ydb,region=ru-central1,bucket=${{ vars.AWS_BUCKET }},endpoint_url=${{ vars.AWS_ENDPOINT }},access_key_id=${{ secrets.AWS_KEY_ID }},secret_access_key=${{ secrets.AWS_KEY_VALUE }},mode=max
110-
111-
- name: Test docker image
112-
continue-on-error: false
113-
run: |
114-
docker run -d --name local-ydb-test ghcr.io/${{ github.repository_owner }}/local-ydb:nightly
115-
sleep 61 # Wait for the health check to run (--start-period=60s --interval=1s)
116-
if [ "$(docker inspect --format='{{json .State.Health.Status}}' local-ydb-test)" != "\"healthy\"" ]; then
117-
echo "Container is not healthy"
118-
docker logs local-ydb-test
119-
exit 1
120-
fi
121-
docker stop local-ydb-test
122-
docker rm local-ydb-test
123-
124-
- name: Push docker image
125-
uses: docker/build-push-action@v4
126-
with:
127-
context: .
128-
push: true
129-
tags: ${{ steps.meta.outputs.tags }}
130-
cache-to: type=s3,name=local_ydb,region=ru-central1,bucket=${{ vars.AWS_BUCKET }},endpoint_url=${{ vars.AWS_ENDPOINT }},access_key_id=${{ secrets.AWS_KEY_ID }},secret_access_key=${{ secrets.AWS_KEY_VALUE }},mode=max

0 commit comments

Comments
 (0)