Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
timosalm committed Nov 7, 2024
1 parent 6eba2e7 commit 921b876
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/crac-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ jobs:
docker commit --change='ENTRYPOINT ["/opt/app/entrypoint.sh"]' $CONTAINER_ID "ghcr.io/${{ github.repository }}:hello-world-crac"
docker kill $CONTAINER_ID
- run: |
CONTAINER_ID=$(docker run -d --cap-add CHECKPOINT_RESTORE --cap-add SYS_PTRACE --rm --name hello-world-crac-checkpointer "ghcr.io/${{ github.repository }}:hello-world-crac-checkpointer")
echo "Container ID: $CONTAINER_ID"
while logs=$(docker logs "$CONTAINER_ID" 2>&1); do
echo "$logs" | grep -q "Checkpoint creation succeeded" && echo "Checkpoint creation succeeded" && break
echo "$logs" | grep -q "Checkpoint creation failed" && echo "Checkpoint creation failed" && exit 1
sleep 2
done
docker commit --change='ENTRYPOINT ["/opt/app/entrypoint.sh"]' $CONTAINER_ID "ghcr.io/${{ github.repository }}:hello-world-crac"
docker kill $CONTAINER_ID
- uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
Expand Down

0 comments on commit 921b876

Please sign in to comment.