Skip to content

Commit

Permalink
ci: update ci files
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoMunizOdoo committed Jul 31, 2023
1 parent 113ab53 commit eed61b0
Show file tree
Hide file tree
Showing 7 changed files with 68 additions and 172 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/assing-pr-to-author.yml

This file was deleted.

13 changes: 13 additions & 0 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: VSF Continuous Delivery

on:
workflow_dispatch:
push:
branches:
- main

jobs:
release-packages:
name: "Release NPM Packages"
uses: vuestorefront/integrations-github-workflows/.github/workflows/continuous-delivery.yml@develop
secrets: inherit
40 changes: 40 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: VSF Continuous Integration

on:
pull_request:
types: ['opened', 'edited', 'reopened', 'synchronize']

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
continous-integration:
name: 'Continuous Integration'
uses: vuestorefront/integrations-github-workflows/.github/workflows/continuous-integration.yml@main
secrets: inherit
with:
enterprise: false
node_version: '["16", "18"]'

sonarcloud-api-client:
name: 'SonarCloud API Client'
needs: [continous-integration]
uses: vuestorefront/integrations-github-workflows/.github/workflows/sonarcloud.yml@develop
secrets:
SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN_API_CLIENT }}
with:
project_key: 'vuestorefront_magento2_api-client'
package_name: 'api-client'
exclusions: '*.config.js,src/index.ts,src/api-extractor-data.ts,**/types/**'

sonarcloud-sdk:
name: 'SonarCloud SDK'
needs: [continous-integration]
uses: vuestorefront/integrations-github-workflows/.github/workflows/sonarcloud.yml@develop
secrets:
SONARCLOUD_TOKEN: ${{ secrets.SONARCLOUD_TOKEN_SDK }}
with:
project_key: 'vuestorefront_magento2_sdk'
package_name: 'sdk'
exclusions: '*.config.js,*.config.*.ts,src/index.ts,src/connector.ts,src/api-extractor-data.ts,**/types/**,'
14 changes: 0 additions & 14 deletions .github/workflows/conventional-pr-name.yml

This file was deleted.

27 changes: 15 additions & 12 deletions .github/workflows/docs-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Deploy Documentation
on:
push:
branches:
- main
workflow_dispatch:

jobs:
Expand All @@ -18,11 +21,11 @@ jobs:
path: version.txt
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(cat version.txt)
run: echo "VERSION=$(cat version.txt)" >> $GITHUB_OUTPUT
- name: Build and publish docker image
uses: elgohr/Publish-Docker-Github-Action@master
uses: elgohr/Publish-Docker-Github-Action@v5
with:
name: docs-storefrontcloud-io/v2-odoo:${{ steps.get_version.outputs.VERSION }}
name: docs-storefrontcloud-io/v2-sdk-magento2:${{ steps.get_version.outputs.VERSION }}
registry: registry.storefrontcloud.io
username: ${{ secrets.DOCS_CLOUD_USERNAME }}
password: ${{ secrets.DOCS_CLOUD_PASSWORD }}
Expand All @@ -40,33 +43,33 @@ jobs:
name: version
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(cat version.txt)
run: echo "VERSION=$(cat version.txt)" >> $GITHUB_OUTPUT
- uses: chrnorm/deployment-action@releases/v1
name: Create GitHub deployment
id: deployment
with:
token: "${{ github.token }}"
target_url: https://docs.europe-west1.gcp.storefrontcloud.io/odoo
target_url: https://docs.europe-west1.gcp.storefrontcloud.io/sdk-magento2
environment: production
initial_status: in_progress
- name: Deploy on docs.europe-west1.gcp.storefrontcloud.io/odoo
- name: Deploy on docs.europe-west1.gcp.storefrontcloud.io/sdk-magento2
id: publish
uses: vuestorefront/publish-docs-action@main
with:
user-id: ${{ secrets.DOCS_CLOUD_USERNAME }}
api-key: ${{ secrets.DOCS_CLOUD_PASSWORD }}
name: "docs-v2-odoo"
name: "docs-v2-sdk-magento2"
tag: "${{ steps.get_version.outputs.VERSION }}"
image: "registry.storefrontcloud.io/docs-storefrontcloud-io/v2-odoo"
path: "/odoo"
image: "registry.storefrontcloud.io/docs-storefrontcloud-io/v2-sdk-magento2"
path: "/sdk-magento2"
port: "80"
has-base-path: true
- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@releases/v1
with:
token: "${{ github.token }}"
target_url: https://docs.europe-west1.gcp.storefrontcloud.io/odoo
target_url: https://docs.europe-west1.gcp.storefrontcloud.io/sdk-magento2
state: "success"
description: Congratulations! The deploy is done.
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
Expand All @@ -75,7 +78,7 @@ jobs:
uses: chrnorm/deployment-status@releases/v1
with:
token: "${{ github.token }}"
target_url: https://docs.europe-west1.gcp.storefrontcloud.io/odoo
target_url: https://docs.europe-west1.gcp.storefrontcloud.io/sdk-magento2
description: Unfortunately, the instance hasn't been updated.
state: "failure"
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
34 changes: 0 additions & 34 deletions .github/workflows/publish.yml

This file was deleted.

94 changes: 0 additions & 94 deletions .github/workflows/test.yml

This file was deleted.

0 comments on commit eed61b0

Please sign in to comment.