From d5c150dc7dcf7dc3769b65ad3007fbe1e1a37d8e Mon Sep 17 00:00:00 2001 From: ThomasCardin Date: Mon, 22 Jan 2024 15:19:36 -0500 Subject: [PATCH] issue #46: added every usefull workflows inside one file --- ...{markdown-check.yml => github-workflows.yml} | 12 ++++++++++-- .github/workflows/lint-test.yml | 13 ------------- .github/workflows/repo-standard.yml | 13 ------------- .github/workflows/workflow.yml | 17 ----------------- 4 files changed, 10 insertions(+), 45 deletions(-) rename .github/workflows/{markdown-check.yml => github-workflows.yml} (69%) delete mode 100644 .github/workflows/lint-test.yml delete mode 100644 .github/workflows/repo-standard.yml delete mode 100644 .github/workflows/workflow.yml diff --git a/.github/workflows/markdown-check.yml b/.github/workflows/github-workflows.yml similarity index 69% rename from .github/workflows/markdown-check.yml rename to .github/workflows/github-workflows.yml index 2f9fe123..414ffd39 100644 --- a/.github/workflows/markdown-check.yml +++ b/.github/workflows/github-workflows.yml @@ -1,4 +1,4 @@ -name: Markdown check +name: Workflows on: pull_request: @@ -8,16 +8,24 @@ on: - synchronize jobs: + lint-test: + uses: ai-cfia/github-workflows/.github/workflows/workflow-lint-test-python.yml@main + secrets: inherit + markdown-check: uses: ai-cfia/github-workflows/.github/workflows/workflow-markdown-check.yml@main with: config-file-path: '.mlc_config.json' secrets: inherit + repo-standard: + uses: ai-cfia/github-workflows/.github/workflows/workflow-repo-standards-validation.yml@main + secrets: inherit + build-deploy: uses: ai-cfia/github-workflows/.github/workflows/workflow-build-push-container-github-registry.yml@63-as-a-devops-i-would-like-to-create-a-workflow-to-push-images-to-this-organisation-docker-registry with: container-name: ${{ github.event.repository.name }} tag: ${{ github.sha }} registry: ghcr.io/ai-cfia - secrets: inherit + secrets: inherit \ No newline at end of file diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml deleted file mode 100644 index a327660e..00000000 --- a/.github/workflows/lint-test.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: Lint test - -on: - pull_request: - types: - - opened - - closed - - synchronize - -jobs: - lint-test: - uses: ai-cfia/github-workflows/.github/workflows/workflow-lint-test-python.yml@main - secrets: inherit \ No newline at end of file diff --git a/.github/workflows/repo-standard.yml b/.github/workflows/repo-standard.yml deleted file mode 100644 index 7edff3e8..00000000 --- a/.github/workflows/repo-standard.yml +++ /dev/null @@ -1,13 +0,0 @@ -name: ai-cfia repository standard - -on: - pull_request: - types: - - opened - - closed - - synchronize - -jobs: - repo-standard: - uses: ai-cfia/github-workflows/.github/workflows/workflow-repo-standards-validation.yml@main - secrets: inherit diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml deleted file mode 100644 index 3054af86..00000000 --- a/.github/workflows/workflow.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Docker build and push to ghcr.io/ai-cfia/nachet-backend - -on: - pull_request: - types: - - opened - - closed - - synchronize - -jobs: - build-deploy: - uses: ai-cfia/github-workflows/.github/workflows/workflow-build-push-container-github-registry.yml@63-as-a-devops-i-would-like-to-create-a-workflow-to-push-images-to-this-organisation-docker-registry - with: - container-name: ${{ github.event.repository.name }} - tag: ${{ github.sha }} - registry: ghcr.io/ai-cfia - secrets: inherit