diff --git a/.github/workflows/release_stable.yml b/.github/workflows/release_stable.yml index f4d6652..7ddc20b 100644 --- a/.github/workflows/release_stable.yml +++ b/.github/workflows/release_stable.yml @@ -17,14 +17,14 @@ env: DOCKER_NAMESPACE: jcpd jobs: - check_release: + Check_image: name: Check and compare official Dotclear version runs-on: ubuntu-latest permissions: contents: read outputs: version: ${{ steps.dotclear.outputs.version }} - exists: ${{ steps.container.outputs.image_exists }} + exists: ${{ steps.registry.outputs.image_exists }} steps: - name: Download and parse last version id: dotclear @@ -34,30 +34,30 @@ jobs: echo version=$(cat versions.xml | xq -x "//release[@name='${{ env.DOTCLEAR_CANAL }}']/@version") >> $GITHUB_OUTPUT - name: Check registry image - id: container + id: registry uses: k4kratik/container-image-check-custom-action@v4 with: type: dockerhub container_repo_name: ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }} - image_tag: ${{ steps.dotclear..outputs.version }} + image_tag: ${{ steps.dotclear.outputs.version }} dockerhub_username: ${{ secrets.DOCKER_USERNAME }} dockerhub_token: ${{ secrets.DOCKER_TOKEN }} - name: notfound - if: (steps.container.outputs.image_exists == 'false') + if: (steps.registry.outputs.image_exists == 'false') run: | SUMMARY=$'Image ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ steps.dotclear..outputs.version }} not found.' echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY - name: found - if: (steps.container.outputs.image_exists == 'true') + if: (steps.registry.outputs.image_exists == 'true') run: | SUMMARY=$'Image ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ steps.dotclear..outputs.version }} found.' echo "$SUMMARY" >> $GITHUB_STEP_SUMMARY do_image: - needs: check_release - if: ((needs.check_release.outputs.exists == 'false') || (github.event.inputs.rebuild == 'true')) + needs: Check_image + if: ((needs.Check_image.outputs.exists == 'false') || (github.event.inputs.rebuild == 'true')) name: Build and push latest and versionned images runs-on: ubuntu-latest permissions: @@ -98,9 +98,9 @@ jobs: sbom: true push: true tags: | - ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ needs.check_release.outputs.version }} + ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:${{ needs.Check_image.outputs.version }} ${{ env.DOCKER_NAMESPACE }}/${{ env.DOTCLEAR_IMAGE }}:latest - ghcr.io/${{ env.GITHUB_REPOSITORY }}:${{ needs.check_release.outputs.version }} + ghcr.io/${{ env.GITHUB_REPOSITORY }}:${{ needs.Check_image.outputs.version }} ghcr.io/${{ env.GITHUB_REPOSITORY }}:latest build-args: CANAL=${{ env.DOTCLEAR_CANAL }} platforms: linux/386,linux/amd64,linux/arm64,linux/arm/V7 @@ -115,4 +115,4 @@ jobs: to: ${{ secrets.TELEGRAM_ID }} token: ${{ secrets.TELEGRAM_TOKEN }} format: markdown - message: Images __${{ env.DOTCLEAR_IMAGE }}:latest__ and __${{ env.DOTCLEAR_IMAGE }}:${{ needs.check_release.outputs.version }}__ successfully generated. + message: Images __${{ env.DOTCLEAR_IMAGE }}:latest__ and __${{ env.DOTCLEAR_IMAGE }}:${{ needs.Check_image.outputs.version }}__ successfully generated.