diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml deleted file mode 100644 index 45157d9..0000000 --- a/.github/workflows/deployment.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Deployment workflow - -on: - push: - branches: - - staging - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Build vite dist folder - id: build - run: npm i && npm run build --mode=production - - name: S3 deployment - id: s3-deploy - uses: dataesr/ovh-s3-deploy@v1 - with: - access_key: ${{ secrets.S3_ACCESS_KEY }} - secret_key: ${{ secrets.S3_SECRET_KEY }} - - notify: - needs: deploy - if: always() - runs-on: ubuntu-latest - steps: - - uses: dataesr/mm-notifier-action@v1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - mattermost_webhook_url: ${{ secrets.MATTERMOST_WEBHOOK_URL }} - mattermost_channel: bots - deployment_url: ${{ steps.s3-deploy.outputs.deployment_url }} \ No newline at end of file diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml new file mode 100644 index 0000000..8612766 --- /dev/null +++ b/.github/workflows/production.yml @@ -0,0 +1,33 @@ +# name: Deployment workflow + +# on: +# push: +# branches: +# - main + +# jobs: +# deploy: +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# - name: Build vite dist folder +# id: build +# run: npm i && npm run build --mode=production +# - name: S3 deployment +# id: s3-deploy +# uses: dataesr/ovh-s3-deploy@v1 +# with: +# access_key: ${{ secrets.S3_ACCESS_KEY }} +# secret_key: ${{ secrets.S3_SECRET_KEY }} + +# notify: +# needs: deploy +# if: always() +# runs-on: ubuntu-latest +# steps: +# - uses: dataesr/mm-notifier-action@v1 +# with: +# github_token: ${{ secrets.GITHUB_TOKEN }} +# mattermost_webhook_url: ${{ secrets.MATTERMOST_WEBHOOK_URL }} +# mattermost_channel: bots +# deployment_url: ${{ steps.s3-deploy.outputs.deployment_url }} diff --git a/.github/workflows/staging.yml b/.github/workflows/staging.yml index 447d3c5..fb3ff81 100644 --- a/.github/workflows/staging.yml +++ b/.github/workflows/staging.yml @@ -6,9 +6,9 @@ on: - staging env: - # DEPLOYMENT: ticket-office - # DEPLOYMENT_NAMESPACE: ticket-office - # DEPLOYMENT_URL: https://ticket-office.staging.dataesr.ovh + DEPLOYMENT: ticket-office + DEPLOYMENT_NAMESPACE: ticket-office + DEPLOYMENT_URL: https://ticket-office.staging.dataesr.ovh MM_NOTIFICATION_CHANNEL: bots jobs: