Skip to content

Anchor and Link replaced by MLink (#298) #344

Anchor and Link replaced by MLink (#298)

Anchor and Link replaced by MLink (#298) #344

Workflow file for this run

name: Strapi/Next deploy pipeline
on:
push:
tags:
- 'dev**'
- 'staging**'
- 'prod**'
branches:
- master
permissions:
contents: 'read'
id-token: 'write'
issues: 'write'
jobs:
conditions:
name: Check for cluster conditions
uses: bratislava/github-actions/.github/workflows/cluster-deploy-conditions.yml@stable
deploy-dev:
name: after dev Strapi deploy Next
if: needs.conditions.outputs.dev == 'true'
needs: [conditions, deploy-dev-strapi]
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@beta
with:
directory: next/
cluster: tkg-innov-dev
url: https://tkg.dev.bratislava.sk
debug: --debug
version: beta
secrets:
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-dev-strapi:
name: dev Strapi
needs: conditions
if: needs.conditions.outputs.dev-strapi == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@beta
with:
directory: strapi/
cluster: tkg-innov-dev
url: https://tkg.dev.bratislava.sk
debug: --debug
version: beta
secrets:
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-dev-next:
name: dev Next
needs: conditions
if: needs.conditions.outputs.dev-next == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@beta
with:
directory: next/
cluster: tkg-innov-dev
url: https://tkg.dev.bratislava.sk
debug: --debug
version: beta
secrets:
service-account: ${{ secrets.DEV_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-staging:
name: after staging Strapi deploy Next
if: needs.conditions.outputs.staging == 'true'
needs: [conditions, deploy-staging-strapi]
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: next/
cluster: tkg-innov-staging
url: https://tkg.staging.bratislava.sk
flag: --staging
debug: --debug
secrets:
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-staging-strapi:
name: staging Strapi
needs: conditions
if: needs.conditions.outputs.staging-strapi == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: strapi/
cluster: tkg-innov-staging
url: https://tkg.staging.bratislava.sk
flag: --staging
debug: --debug
secrets:
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-staging-next:
name: staging Next
needs: conditions
if: needs.conditions.outputs.staging-next == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: next/
cluster: tkg-innov-staging
url: https://tkg.staging.bratislava.sk
flag: --staging
debug: --debug
secrets:
service-account: ${{ secrets.STAGING_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-prod:
name: after prod Strapi deploy Next
if: needs.conditions.outputs.prod == 'true'
needs: [conditions, deploy-prod-strapi]
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: next/
cluster: tkg-innov-prod
url: https://tkg.bratislava.sk
flag: --production
secrets:
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-prod-strapi:
name: prod Strapi
needs: conditions
if: needs.conditions.outputs.prod-strapi == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: strapi/
cluster: tkg-innov-prod
url: https://tkg.bratislava.sk
flag: --production
debug: --debug
secrets:
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}
deploy-prod-next:
name: prod Next
needs: conditions
if: needs.conditions.outputs.prod-next == 'true'
uses: bratislava/github-actions/.github/workflows/deploy-with-bratiska-cli.yml@stable
with:
directory: next/
cluster: tkg-innov-prod
url: https://tkg.bratislava.sk
flag: --production
secrets:
service-account: ${{ secrets.PROD_STANDALONE_TOKEN }}
registry-pass: ${{ secrets.HARBOR_REGISTRY_PASSWORD }}