From 60a3fe78488511c74923592a6ffedb47b412ff18 Mon Sep 17 00:00:00 2001 From: Entwicklung Date: Fri, 16 Aug 2024 09:01:20 +0200 Subject: [PATCH 01/17] add defult email to docker compose file --- docker-compose.test.yml | 1 + docker-compose.yml | 1 + installDockerDebian.sh | 2 +- installDockerUbuntu.sh | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 7d1c289f..99eb02a1 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -81,6 +81,7 @@ services: MAILER_ENCRYPTION: ${MAILER_ENC} laF_version: ${GIT_VERSION} registerEmailAdress: ${registerEmailAdress} + DEFAULT_EMAIL: ${registerEmailAdress} laF_baseUrl: ${HTTP_METHOD}://${PUBLIC_URL} VICH_BASE: ${HTTP_METHOD}://${PUBLIC_URL} CRON_USER_1: root diff --git a/docker-compose.yml b/docker-compose.yml index 32fdadbf..38c713d5 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -91,6 +91,7 @@ services: MAILER_ENCRYPTION: ${MAILER_ENC} laF_version: ${GIT_VERSION} registerEmailAdress: ${registerEmailAdress} + DEFAULT_EMAIL: ${registerEmailAdress} laF_baseUrl: ${HTTP_METHOD}://${PUBLIC_URL} VICH_BASE: ${HTTP_METHOD}://${PUBLIC_URL} CRON_USER_1: docker diff --git a/installDockerDebian.sh b/installDockerDebian.sh index 55a8f3b2..cafba74b 100755 --- a/installDockerDebian.sh +++ b/installDockerDebian.sh @@ -18,7 +18,7 @@ echo \ sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin -y -sudo wget https://github.com/docker/compose/releases/download/v2.7.0/docker-compose-linux-x86_64 -O /usr/local/bin/docker-compose +sudo wget https://github.com/docker/compose/releases/download/v2.29.1/docker-compose-linux-x86_64 -O /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose docker-compose -v diff --git a/installDockerUbuntu.sh b/installDockerUbuntu.sh index b9c838bd..0a35ba90 100755 --- a/installDockerUbuntu.sh +++ b/installDockerUbuntu.sh @@ -17,7 +17,7 @@ echo \ sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin -sudo wget https://github.com/docker/compose/releases/download/v2.7.0/docker-compose-linux-x86_64 -O /usr/local/bin/docker-compose +sudo wget https://github.com/docker/compose/releases/download/v2.29.1/docker-compose-linux-x86_64 -O /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose docker-compose -v From 7f27e76ed3c6d4aea075cefd7c78f0c741eaa4a5 Mon Sep 17 00:00:00 2001 From: Entwicklung Date: Fri, 16 Aug 2024 09:08:06 +0200 Subject: [PATCH 02/17] add restart policy to restart services --- docker-compose.test.yml | 6 ++++-- docker-compose.yml | 2 ++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 99eb02a1..2a70ddb5 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -14,7 +14,7 @@ x-app-common: &odc_app services: traefik-odc: image: "traefik:v2.5" - + restart: unless-stopped command: #- "--log.level=DEBUG" - "--api.insecure=true" @@ -59,7 +59,7 @@ services: timeout: 10s start_period: 30s retries: 10 - + restart: unless-stopped environment: APP_ENV: "dev" APACHE_DOCUMENT_ROOT: "public/" @@ -107,6 +107,7 @@ services: db-odc: image: mariadb:latest hostname: ${RANDOMTAG}db-odc + restart: unless-stopped healthcheck: test: [ "CMD", "mariadb-admin" ,"ping", "-h", "localhost","-ptest" ] timeout: 20s @@ -121,6 +122,7 @@ services: keycloak-odc: image: quay.io/keycloak/keycloak:22.0.3 + restart: unless-stopped depends_on: app-odc: condition: service_healthy diff --git a/docker-compose.yml b/docker-compose.yml index 38c713d5..98a5e7e8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -70,6 +70,7 @@ services: timeout: 10s start_period: 30s retries: 10 + restart: unless-stopped environment: APACHE_DOCUMENT_ROOT: "public/" @@ -122,6 +123,7 @@ services: test: [ "CMD", "mariadb-admin" ,"ping", "-h", "localhost","-ptest" ] timeout: 20s retries: 10 + restart: unless-stopped environment: MARIADB_ROOT_PASSWORD: test volumes: From 2a4134f94a45fa5310bde37eadda216bc0dbbf63 Mon Sep 17 00:00:00 2001 From: Entwicklung Date: Tue, 8 Oct 2024 11:08:38 +0200 Subject: [PATCH 03/17] add migration to match the existing modell --- src/Migrations/Version20241008090501.php | 73 ++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/Migrations/Version20241008090501.php diff --git a/src/Migrations/Version20241008090501.php b/src/Migrations/Version20241008090501.php new file mode 100644 index 00000000..3c5652ac --- /dev/null +++ b/src/Migrations/Version20241008090501.php @@ -0,0 +1,73 @@ +addSql('ALTER TABLE answer CHANGE question_id question_id INT NOT NULL'); + $this->addSql('ALTER TABLE participation CHANGE akademie_buchungen_id akademie_buchungen_id INT DEFAULT NULL, CHANGE passed passed TINYINT(1) NOT NULL, CHANGE state state VARCHAR(255) NOT NULL'); + $this->addSql('ALTER TABLE participation_answer CHANGE participation_id participation_id INT NOT NULL, CHANGE questionnaire_id questionnaire_id INT NOT NULL, CHANGE question_id question_id INT NOT NULL, CHANGE answer_id answer_id INT NOT NULL'); + $this->addSql('ALTER TABLE question CHANGE eval_value eval_value DOUBLE PRECISION NOT NULL'); + $this->addSql('ALTER TABLE questionnaire CHANGE description description TEXT DEFAULT NULL'); + $this->addSql('ALTER TABLE team RENAME INDEX unq_team_name TO UNIQ_C4E0A61F5E237E06'); + $this->addSql('ALTER TABLE team_admin MODIFY id INT NOT NULL'); + $this->addSql('ALTER TABLE team_admin DROP FOREIGN KEY RFX_team_id_team_admin_6704f59cda29d'); + $this->addSql('ALTER TABLE team_admin DROP FOREIGN KEY RFX_user_id_team_admin_6704f59cda242'); + $this->addSql('DROP INDEX team_admin_IdX ON team_admin'); + $this->addSql('DROP INDEX `primary` ON team_admin'); + $this->addSql('ALTER TABLE team_admin DROP id'); + $this->addSql('ALTER TABLE team_admin ADD CONSTRAINT FK_4F084436296CD8AE FOREIGN KEY (team_id) REFERENCES team (id) ON DELETE CASCADE'); + $this->addSql('ALTER TABLE team_admin ADD CONSTRAINT FK_4F084436A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE'); + $this->addSql('ALTER TABLE team_admin ADD PRIMARY KEY (team_id, user_id)'); + $this->addSql('ALTER TABLE user RENAME INDEX idx_957a64799e73ac3e TO IDX_8D93D6499E73AC3E'); + $this->addSql('ALTER TABLE user_team MODIFY id INT NOT NULL'); + $this->addSql('ALTER TABLE user_team DROP FOREIGN KEY RFX_team_id_user_team_6704f59cda128'); + $this->addSql('ALTER TABLE user_team DROP FOREIGN KEY RFX_user_id_user_team_6704f59cd9f23'); + $this->addSql('DROP INDEX user_team_IdX ON user_team'); + $this->addSql('DROP INDEX `primary` ON user_team'); + $this->addSql('ALTER TABLE user_team DROP id'); + $this->addSql('ALTER TABLE user_team ADD CONSTRAINT FK_BE61EAD6A76ED395 FOREIGN KEY (user_id) REFERENCES user (id) ON DELETE CASCADE'); + $this->addSql('ALTER TABLE user_team ADD CONSTRAINT FK_BE61EAD6296CD8AE FOREIGN KEY (team_id) REFERENCES team (id) ON DELETE CASCADE'); + $this->addSql('ALTER TABLE user_team ADD PRIMARY KEY (user_id, team_id)'); + } + + public function down(Schema $schema): void + { + // this down() migration is auto-generated, please modify it to your needs + $this->addSql('ALTER TABLE answer CHANGE question_id question_id INT DEFAULT NULL'); + $this->addSql('ALTER TABLE participation CHANGE akademie_buchungen_id akademie_buchungen_id INT NOT NULL, CHANGE state state VARCHAR(255) DEFAULT \'assigned\' NOT NULL, CHANGE passed passed TINYINT(1) DEFAULT NULL'); + $this->addSql('ALTER TABLE participation_answer CHANGE participation_id participation_id INT DEFAULT NULL, CHANGE questionnaire_id questionnaire_id INT DEFAULT NULL, CHANGE question_id question_id INT DEFAULT NULL, CHANGE answer_id answer_id INT DEFAULT NULL'); + $this->addSql('ALTER TABLE question CHANGE eval_value eval_value DOUBLE PRECISION DEFAULT \'1\' NOT NULL'); + $this->addSql('ALTER TABLE questionnaire CHANGE description description VARCHAR(255) DEFAULT NULL'); + $this->addSql('ALTER TABLE team RENAME INDEX uniq_c4e0a61f5e237e06 TO UNQ_team_name'); + $this->addSql('ALTER TABLE team_admin DROP FOREIGN KEY FK_4F084436296CD8AE'); + $this->addSql('ALTER TABLE team_admin DROP FOREIGN KEY FK_4F084436A76ED395'); + $this->addSql('ALTER TABLE team_admin ADD id INT AUTO_INCREMENT NOT NULL, DROP PRIMARY KEY, ADD PRIMARY KEY (id)'); + $this->addSql('ALTER TABLE team_admin ADD CONSTRAINT RFX_team_id_team_admin_6704f59cda29d FOREIGN KEY (team_id) REFERENCES team (id)'); + $this->addSql('ALTER TABLE team_admin ADD CONSTRAINT RFX_user_id_team_admin_6704f59cda242 FOREIGN KEY (user_id) REFERENCES user (id)'); + $this->addSql('CREATE UNIQUE INDEX team_admin_IdX ON team_admin (id)'); + $this->addSql('ALTER TABLE user RENAME INDEX idx_8d93d6499e73ac3e TO IDX_957A64799E73AC3E'); + $this->addSql('ALTER TABLE user_team DROP FOREIGN KEY FK_BE61EAD6A76ED395'); + $this->addSql('ALTER TABLE user_team DROP FOREIGN KEY FK_BE61EAD6296CD8AE'); + $this->addSql('ALTER TABLE user_team ADD id INT AUTO_INCREMENT NOT NULL, DROP PRIMARY KEY, ADD PRIMARY KEY (id)'); + $this->addSql('ALTER TABLE user_team ADD CONSTRAINT RFX_team_id_user_team_6704f59cda128 FOREIGN KEY (team_id) REFERENCES team (id)'); + $this->addSql('ALTER TABLE user_team ADD CONSTRAINT RFX_user_id_user_team_6704f59cd9f23 FOREIGN KEY (user_id) REFERENCES user (id)'); + $this->addSql('CREATE UNIQUE INDEX user_team_IdX ON user_team (id)'); + } +} From cd505ae72f8e84a593166076fc4d036c16fbcae3 Mon Sep 17 00:00:00 2001 From: Giuliano Mele Date: Tue, 8 Oct 2024 12:54:40 +0200 Subject: [PATCH 04/17] Try to fix invalid schemas during migration --- src/Migrations/Version20241008090501.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Migrations/Version20241008090501.php b/src/Migrations/Version20241008090501.php index 3c5652ac..427872c6 100644 --- a/src/Migrations/Version20241008090501.php +++ b/src/Migrations/Version20241008090501.php @@ -14,7 +14,7 @@ final class Version20241008090501 extends AbstractMigration { public function getDescription(): string { - return ''; + return 'Cleanup migration to match existing model'; } public function up(Schema $schema): void @@ -27,8 +27,9 @@ public function up(Schema $schema): void $this->addSql('ALTER TABLE questionnaire CHANGE description description TEXT DEFAULT NULL'); $this->addSql('ALTER TABLE team RENAME INDEX unq_team_name TO UNIQ_C4E0A61F5E237E06'); $this->addSql('ALTER TABLE team_admin MODIFY id INT NOT NULL'); - $this->addSql('ALTER TABLE team_admin DROP FOREIGN KEY RFX_team_id_team_admin_6704f59cda29d'); - $this->addSql('ALTER TABLE team_admin DROP FOREIGN KEY RFX_user_id_team_admin_6704f59cda242'); + foreach ($schema->getTable('team_admin')->getForeignKeys() as $foreignKey) { + $this->addSql('ALTER TABLE team_admin DROP FOREIGN KEY ' . $foreignKey->getName()); + } $this->addSql('DROP INDEX team_admin_IdX ON team_admin'); $this->addSql('DROP INDEX `primary` ON team_admin'); $this->addSql('ALTER TABLE team_admin DROP id'); @@ -37,8 +38,9 @@ public function up(Schema $schema): void $this->addSql('ALTER TABLE team_admin ADD PRIMARY KEY (team_id, user_id)'); $this->addSql('ALTER TABLE user RENAME INDEX idx_957a64799e73ac3e TO IDX_8D93D6499E73AC3E'); $this->addSql('ALTER TABLE user_team MODIFY id INT NOT NULL'); - $this->addSql('ALTER TABLE user_team DROP FOREIGN KEY RFX_team_id_user_team_6704f59cda128'); - $this->addSql('ALTER TABLE user_team DROP FOREIGN KEY RFX_user_id_user_team_6704f59cd9f23'); + foreach ($schema->getTable('user_team')->getForeignKeys() as $foreignKey) { + $this->addSql('ALTER TABLE user_team DROP FOREIGN KEY ' . $foreignKey->getName()); + } $this->addSql('DROP INDEX user_team_IdX ON user_team'); $this->addSql('DROP INDEX `primary` ON user_team'); $this->addSql('ALTER TABLE user_team DROP id'); From ae5e34910e5c9aba695ed495d735d55649883c6d Mon Sep 17 00:00:00 2001 From: Entwicklung Date: Tue, 15 Oct 2024 15:38:54 +0200 Subject: [PATCH 05/17] fixing not downloading files which are uploaded --- src/Controller/DatenweitergabeController.php | 10 +++++++++- src/Controller/FormsController.php | 2 +- src/Controller/PoliciesController.php | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/Controller/DatenweitergabeController.php b/src/Controller/DatenweitergabeController.php index 2d87fd74..6fa2b66a 100644 --- a/src/Controller/DatenweitergabeController.php +++ b/src/Controller/DatenweitergabeController.php @@ -24,6 +24,7 @@ use Symfony\Component\HttpFoundation\HeaderUtils; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; +use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; use Symfony\Component\Routing\Annotation\Route; use Symfony\Component\Validator\Validator\ValidatorInterface; use Symfony\Contracts\Translation\TranslatorInterface; @@ -216,7 +217,14 @@ public function downloadArticleReference( return $this->redirectToRoute('dashboard'); } - $type = $datenFilesystem->getMimetype($datenweitergabe->getUpload()); + $type = null; + try { + $type = $datenFilesystem->mimeType($datenweitergabe->getUpload()); + }catch (\Exception $exception){ + throw new NotFoundHttpException('File not found'); + } + + $response = new Response($stream); $response->headers->set('Content-Type', $type); $disposition = HeaderUtils::makeDisposition( diff --git a/src/Controller/FormsController.php b/src/Controller/FormsController.php index f9b9d8c1..c3453a96 100644 --- a/src/Controller/FormsController.php +++ b/src/Controller/FormsController.php @@ -142,7 +142,7 @@ public function downloadArticleReference( return $this->redirectToRoute('dashboard'); } - $type = $formsFilesystem->getMimetype($forms->getUpload()); + $type = $formsFilesystem->mimeType($forms->getUpload()); $response = new Response($stream); $response->headers->set('Content-Type', $type); $disposition = HeaderUtils::makeDisposition( diff --git a/src/Controller/PoliciesController.php b/src/Controller/PoliciesController.php index ef4edc23..d1a926fe 100644 --- a/src/Controller/PoliciesController.php +++ b/src/Controller/PoliciesController.php @@ -144,7 +144,7 @@ public function downloadArticleReference( return $this->redirectToRoute('dashboard'); } - $type = $policiesFilesystem->getMimetype($policies->getUpload()); + $type = $policiesFilesystem->mimeType($policies->getUpload()); $response = new Response($stream); $response->headers->set('Content-Type', $type); $disposition = HeaderUtils::makeDisposition( From 553242453b9ed707af16df01ba19085fe624bf67 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:34:03 +0200 Subject: [PATCH 06/17] Create pipeline-development.yml --- .github/workflows/pipeline-development.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .github/workflows/pipeline-development.yml diff --git a/.github/workflows/pipeline-development.yml b/.github/workflows/pipeline-development.yml new file mode 100644 index 00000000..1167bd39 --- /dev/null +++ b/.github/workflows/pipeline-development.yml @@ -0,0 +1,9 @@ +name: Create Release +env: + GITHUB_TOKEN: ${{ secrets.token }} + +on: push + +jobs: + artifact: + uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml@devops From 38364427f959c5dcb9e36b26c467c26d0de2dbe2 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:35:07 +0200 Subject: [PATCH 07/17] Create pipeline-release.yml --- .github/workflows/pipeline-release.yml | 73 ++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .github/workflows/pipeline-release.yml diff --git a/.github/workflows/pipeline-release.yml b/.github/workflows/pipeline-release.yml new file mode 100644 index 00000000..580ffd0f --- /dev/null +++ b/.github/workflows/pipeline-release.yml @@ -0,0 +1,73 @@ +name: Create Release +env: + GITHUB_TOKEN: ${{ secrets.token }} + +on: + push: + branches: + - main + - master + +jobs: + artifact: + uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml@devops + + create_release: + needs: + - artifact + runs-on: ubuntu-latest + steps: + + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - uses: paulhatch/semantic-version@v5.0.2 + id: version + with: + tag_prefix: "" + major_pattern: "(MAJOR)" + minor_pattern: "(MINOR)" + change_path: . + version_format: "${major}.${minor}.${patch}" + + - name: Create new Release with semantic-version tag + uses: actions/create-release@master + id: create_release + with: + draft: false + prerelease: false + release_name: Release ${{ steps.version.outputs.version }} + tag_name: ${{ steps.version.outputs.version }} + body_path: RELEASE_NOTE.md + + - uses: actions/download-artifact@v3 + with: + name: artifact_${{github.run_number}} + + - run: unzip -qq artifact_${{github.run_number}}.zip -d artifact + + - name: Write semantic Version in .env.local + uses: jacobtomlinson/gha-find-replace@v3 + with: + find: "laF_version=2.0.0-dev" + replace: "laF_version=${{ steps.version.outputs.version }}" + regex: false + include: "artifact/.env" + + - name: Archive Release for application + uses: thedoctor0/zip-release@0.7.1 + with: + type: 'zip' + filename: 'release.zip' + exclusions: '*.git* *.github* /*node_modules/* .editorconfig' + directory: artifact + + - name: Upload Application Asset to Release + uses: actions/upload-release-asset@master + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: artifact/release.zip + asset_name: application.zip + asset_content_type: application/zip From bc2b9ffe6a309ef417db1b23e77b9405e38922ba Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:35:29 +0200 Subject: [PATCH 08/17] Create task-artifact.yml --- .github/workflows/task-artifact.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/task-artifact.yml diff --git a/.github/workflows/task-artifact.yml b/.github/workflows/task-artifact.yml new file mode 100644 index 00000000..753f6cf7 --- /dev/null +++ b/.github/workflows/task-artifact.yml @@ -0,0 +1,33 @@ +name: Build Artifacts + +on: workflow_call + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Install PHP Dependencies + uses: php-actions/composer@v6 + with: + php_version: ${{ vars.PHP_VERSION }} + php_extensions: ldap xsl zip + + - name: Install NPM Packages + uses: actions/setup-node@v3 + with: + node-version: ${{ vars.NODE_VERSION }} + - run: npm install + - run: npm run build + - run: rm -r node_modules + + - uses: montudor/action-zip@v1 + with: + args: zip -qq -r artifact_${{github.run_number}}.zip . + + - name: Upload articats + uses: actions/upload-artifact@v3 + with: + name: artifact_${{github.run_number}} + path: artifact_${{github.run_number}}.zip From 22821a1e7be1239719b1c8c9a479ced53860c0d0 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:35:46 +0200 Subject: [PATCH 09/17] Update pipeline-release.yml --- .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 580ffd0f..078780b9 100644 --- a/.github/workflows/pipeline-release.yml +++ b/.github/workflows/pipeline-release.yml @@ -36,7 +36,7 @@ jobs: uses: actions/create-release@master id: create_release with: - draft: false + draft: true prerelease: false release_name: Release ${{ steps.version.outputs.version }} tag_name: ${{ steps.version.outputs.version }} From b587257e26df0cb849c2236a7f1a76a1562aa3c4 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:36:38 +0200 Subject: [PATCH 10/17] Update pipeline-release.yml --- .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 078780b9..201c491f 100644 --- a/.github/workflows/pipeline-release.yml +++ b/.github/workflows/pipeline-release.yml @@ -10,7 +10,7 @@ on: jobs: artifact: - uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml@devops + uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml create_release: needs: From 81f8f3fc932105d9f8a47c5407ffd4091862bcdf Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:37:41 +0200 Subject: [PATCH 11/17] Update pipeline-development.yml --- .github/workflows/pipeline-development.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline-development.yml b/.github/workflows/pipeline-development.yml index 1167bd39..2ce3f7bf 100644 --- a/.github/workflows/pipeline-development.yml +++ b/.github/workflows/pipeline-development.yml @@ -6,4 +6,4 @@ on: push jobs: artifact: - uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml@devops + uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml From 9cbc5e632add32d05ee4676bb22cdc689026fd5d Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:39:32 +0200 Subject: [PATCH 12/17] Update pipeline-release.yml --- .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 201c491f..a924e691 100644 --- a/.github/workflows/pipeline-release.yml +++ b/.github/workflows/pipeline-release.yml @@ -10,7 +10,7 @@ on: jobs: artifact: - uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml + uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml@master create_release: needs: From 7f600a281af8747bf00092025bbdb61a7d70fcf5 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:39:55 +0200 Subject: [PATCH 13/17] Update pipeline-development.yml --- .github/workflows/pipeline-development.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline-development.yml b/.github/workflows/pipeline-development.yml index 2ce3f7bf..d42eba6b 100644 --- a/.github/workflows/pipeline-development.yml +++ b/.github/workflows/pipeline-development.yml @@ -6,4 +6,4 @@ on: push jobs: artifact: - uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml + uses: h2-invent/open-datenschutzcenter/.github/workflows/task-artifact.yml@master From 461288c010dcbf597bf60a8d7febf4fb1c005720 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:44:09 +0200 Subject: [PATCH 14/17] Update pipeline-development.yml --- .github/workflows/pipeline-development.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pipeline-development.yml b/.github/workflows/pipeline-development.yml index d42eba6b..bef4b651 100644 --- a/.github/workflows/pipeline-development.yml +++ b/.github/workflows/pipeline-development.yml @@ -1,4 +1,4 @@ -name: Create Release +name: Run Development Build and Tests env: GITHUB_TOKEN: ${{ secrets.token }} From 390c1ca8898a6b0342ac89b1b03c69f6a3a4fd9a Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:45:55 +0200 Subject: [PATCH 15/17] Create RELEASE_NOTE.md --- RELEASE_NOTE.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 RELEASE_NOTE.md diff --git a/RELEASE_NOTE.md b/RELEASE_NOTE.md new file mode 100644 index 00000000..fb5c1c3b --- /dev/null +++ b/RELEASE_NOTE.md @@ -0,0 +1,3 @@ +# RELEASE NOTE + +* Fix Downlaod of Documents From 92c8e05204f63ef5ace0a2a50ec77d262f626c02 Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:55:49 +0200 Subject: [PATCH 16/17] Update pipeline-release.yml --- .github/workflows/pipeline-release.yml | 30 +++++++++++--------------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/.github/workflows/pipeline-release.yml b/.github/workflows/pipeline-release.yml index a924e691..40b1bb8f 100644 --- a/.github/workflows/pipeline-release.yml +++ b/.github/workflows/pipeline-release.yml @@ -32,16 +32,6 @@ jobs: change_path: . version_format: "${major}.${minor}.${patch}" - - name: Create new Release with semantic-version tag - uses: actions/create-release@master - id: create_release - with: - draft: true - prerelease: false - release_name: Release ${{ steps.version.outputs.version }} - tag_name: ${{ steps.version.outputs.version }} - body_path: RELEASE_NOTE.md - - uses: actions/download-artifact@v3 with: name: artifact_${{github.run_number}} @@ -60,14 +50,18 @@ jobs: uses: thedoctor0/zip-release@0.7.1 with: type: 'zip' - filename: 'release.zip' - exclusions: '*.git* *.github* /*node_modules/* .editorconfig' + filename: 'application.zip' + exclusions: '*.git* *.github* /*node_modules/* /*nodejs/* /*var/* .editorconfig' directory: artifact - - name: Upload Application Asset to Release - uses: actions/upload-release-asset@master + - name: Create new Release with semantic-version tag + uses: ncipollo/release-action@v1 + id: create_release with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: artifact/release.zip - asset_name: application.zip - asset_content_type: application/zip + draft: true + prerelease: false + name: Release ${{ steps.version.outputs.version }} + tag: ${{ steps.version.outputs.version }} + artifacts: artifact/application.zip,artifact/nodejs/websocket.zip + artifactContentType: application/zip + bodyFile: RELEASE_NOTE.md From 974e3b65abba0369db351777628b0d33dca51d8c Mon Sep 17 00:00:00 2001 From: Andreas <58698758+holzi1005@users.noreply.github.com> Date: Tue, 15 Oct 2024 18:56:39 +0200 Subject: [PATCH 17/17] Update pipeline-release.yml --- .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 40b1bb8f..050ceabf 100644 --- a/.github/workflows/pipeline-release.yml +++ b/.github/workflows/pipeline-release.yml @@ -62,6 +62,6 @@ jobs: prerelease: false name: Release ${{ steps.version.outputs.version }} tag: ${{ steps.version.outputs.version }} - artifacts: artifact/application.zip,artifact/nodejs/websocket.zip + artifacts: artifact/application.zip artifactContentType: application/zip bodyFile: RELEASE_NOTE.md