From 8c2286b7f35b3bc9049aaa6153c96c1ad611dac0 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 4 Oct 2022 14:54:57 +0200 Subject: [PATCH] docker-stable gh action: push all tags; display the pushed version --- .github/workflows/docker-stable.yml | 6 +++--- doc/doxygen/inside_release.doc | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/docker-stable.yml b/.github/workflows/docker-stable.yml index 43de9e3ed8..68a4ec31f2 100644 --- a/.github/workflows/docker-stable.yml +++ b/.github/workflows/docker-stable.yml @@ -39,15 +39,15 @@ jobs: grep SIMGRID_VERSION_PATCH CMakeLists.txt| grep -q 'SIMGRID_VERSION_PATCH "0"' || (echo "Only run this action on stable source";exit 1) cd tools/docker make stable - docker push simgrid/stable + docker push --all-tags simgrid/stable - name: Create the failure Message if: ${{ failure() }} run: | - ver=$(git describe --tags --abbrev=0) echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building STABLE docker image $ver! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json + ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#FF0000\", \"text\":\"Failure when building STABLE docker image v3.$ver! See ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json - name: Create the success Message if: ${{ success() }} run: | - ver=$(git describe --tags --abbrev=0) echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Docker STABLE image $ver built and pushed successfully! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json + ver=$(grep set.SIMGRID_VERSION_MINOR CMakeLists.txt|sed 's/[^"]*"//'|sed 's/".*$//') echo "{\"attachments\": [{\"color\": \"#00FF00\", \"text\":\"Docker STABLE image v3.$ver built and pushed successfully! ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} \"}]}" > mattermost.json - uses: mattermost/action-mattermost-notify@master env: MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} diff --git a/doc/doxygen/inside_release.doc b/doc/doxygen/inside_release.doc index 1620515cca..4e64209f2a 100644 --- a/doc/doxygen/inside_release.doc +++ b/doc/doxygen/inside_release.doc @@ -90,6 +90,9 @@ Please apply the following checklist before releasing. - Update the simgrid/package.py for spack: https://gitlab.inria.fr/solverstack/spack-repo - Push the stable branch to github to rebuild and push the stable Docker images - It downloads the latest tag on framagit + - If it was done automatically at some point, make sure that it's really the latest stable, + as things get sometimes out of synch to the point that the github action re-build the previous release. + If this happens, just rerun the docker-stable action. Nothing should have been broken. - Doing the same manually: cd tools/docker && make stable && make tuto-s4u tuto-smpi (tuto-mc is not based on simgrid/stable but rebuilds from the git) - Once the new images are built, trigger a rebuild of the simgrid-template-{s4u,smpi} repositories on framagit -- 2.20.1