From 690f8cae29919a470490f69f990ac0389ee2d09b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20VALENTIN?= Date: Fri, 26 Jan 2024 23:00:02 +0100 Subject: [PATCH] fix: ci secret --- .github/workflows/deploy_prerelease.yaml | 11 +++++++---- .github/workflows/deploy_release.yaml | 12 ++++++++---- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy_prerelease.yaml b/.github/workflows/deploy_prerelease.yaml index 34deb56f..34649400 100644 --- a/.github/workflows/deploy_prerelease.yaml +++ b/.github/workflows/deploy_prerelease.yaml @@ -45,25 +45,28 @@ jobs: if: ${{ needs.informations.outputs.build == true }} uses: MyElectricalData/.github/.github/workflows/discord.yaml@main with: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} MESSAGE: '**MyElectricalData** : Version **${{ needs.informations.outputs.version }}** is in building state...' + secrets: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} Build-And-Push-Image: needs: [informations, Discord-Begin] uses: MyElectricalData/.github/.github/workflows/dockerhub-build-push.yaml@main with: - DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} - DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} IMAGE_REPO: ${IMAGE_REPO} IMAGE_NAME: ${IMAGE_NAME} PUSH: true TAG: ${{ needs.informations.outputs.version }} PLATFORM: "linux/amd64, linux/arm64, linux/arm/v6, linux/arm/v7" LATEST: false + secrets: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} Discord-Finish: needs: [Build-And-Push-Image] uses: MyElectricalData/.github/.github/workflows/discord.yaml@main with: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} MESSAGE: '**MyElectricalData** : New version available **${{ needs.informations.outputs.version }}**' + secrets: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} diff --git a/.github/workflows/deploy_release.yaml b/.github/workflows/deploy_release.yaml index 17514ac0..339c9dbc 100644 --- a/.github/workflows/deploy_release.yaml +++ b/.github/workflows/deploy_release.yaml @@ -41,25 +41,29 @@ jobs: if: ${{ needs.informations.outputs.build == true }} uses: MyElectricalData/.github/.github/workflows/discord.yaml@main with: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} MESSAGE: '**MyElectricalData** : Version **${{ needs.informations.outputs.version }}** is in building state...' + secrets: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + Build-And-Push-Image: needs: [informations, Discord-Begin] uses: MyElectricalData/.github/.github/workflows/dockerhub-build-push.yaml@main with: - DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} - DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} IMAGE_REPO: ${IMAGE_REPO} IMAGE_NAME: ${IMAGE_NAME} PUSH: true TAG: ${{ needs.informations.outputs.version }} PLATFORM: "linux/amd64, linux/arm64, linux/arm/v6, linux/arm/v7" LATEST: true + secrets: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} Discord-Finish: needs: [Build-And-Push-Image] uses: MyElectricalData/.github/.github/workflows/discord.yaml@main with: + MESSAGE: '**MyElectricalData** : New version available **${{ needs.informations.outputs.version }}**' + secrets: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} - MESSAGE: '**MyElectricalData** : New version available **${{ needs.informations.outputs.version }}**' \ No newline at end of file