From 7720b50f849939e2656562251185b70c60c20a91 Mon Sep 17 00:00:00 2001 From: Entwicklung Date: Mon, 4 Dec 2023 23:41:33 +0100 Subject: [PATCH 1/2] * Add Pipeline version befor create artefact --- .github/workflows/pipeline-release.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/pipeline-release.yml b/.github/workflows/pipeline-release.yml index f1720ed..fc07560 100644 --- a/.github/workflows/pipeline-release.yml +++ b/.github/workflows/pipeline-release.yml @@ -48,6 +48,14 @@ jobs: - run: unzip -qq artifact_${{github.run_number}}.zip -d artifact + - name: Write semantic Version in config file + uses: jacobtomlinson/gha-find-replace@v3 + with: + find: "" + replace: "${{ steps.version.outputs.version }}" + regex: false + include: "artifact/config.mjs" + - name: Archive Release for application From 822e8486bc223783abd49ecdf19e8c169e46cc76 Mon Sep 17 00:00:00 2001 From: Entwicklung Date: Mon, 4 Dec 2023 23:42:01 +0100 Subject: [PATCH 2/2] * Add Pipeline version befor create artefact --- .github/workflows/pipeline-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline-release.yml b/.github/workflows/pipeline-release.yml index fc07560..9921df3 100644 --- a/.github/workflows/pipeline-release.yml +++ b/.github/workflows/pipeline-release.yml @@ -85,7 +85,7 @@ jobs: with: reponame: 'h2invent/jitsi-admin-matrix-bot' dockerfile_path: './Dockerfile' - directory: '.' + directory: 'artifact/' version: h2invent/jitsi-admin-matrix-bot:latest,h2invent/jitsi-admin-matrix-bot:${{ needs.create_release.outputs.create_release_output }} secrets: dockerhub_password: ${{ secrets.DOCKERHUB_TOKEN }}