Skip to content

Version 1.5.3

Version 1.5.3 #185

name: Deploy to Staging
concurrency:
group: staging-concurrency
cancel-in-progress: true
permissions:
contents: read
pull-requests: read
packages: write
on:
release:
types: [published]
jobs:
run_migrations:
name: Update database in Staging
permissions:
contents: read
pull-requests: read
id-token: write
uses: equinor/armada/.github/workflows/run_dotnet_migrations.yml@main
with:
environment: Staging
working_directory: backend/api
azure_subscription_id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
build-and-push-latest-release-flotilla-component-to-robotics-staging-container-registry:
name: Build and push latest release flotilla components to robotics staging container registry
permissions:
contents: read
packages: write
strategy:
matrix:
component: [broker, backend, frontend]
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
with:
registry: roboticsstagingacr.azurecr.io
image_name: robotics/flotilla-${{ matrix.component }}
tag: ${{ github.event.release.tag_name }}
secondary_tag: latest
path_to_dockerfile: ${{ matrix.component}}/Dockerfile
path_to_context: ./${{ matrix.component}}
secrets:
registry_password: ${{ secrets.ROBOTICS_ROBOTICSSTAGINGACR_PASSWORD }}
registry_username: ${{ secrets.ROBOTICS_ROBOTICSSTAGINGACR_USERNAME }}
deploy:
name: Update deployment in Staging
permissions:
contents: read
packages: write
needs: build-and-push-latest-release-flotilla-component-to-robotics-staging-container-registry
strategy:
max-parallel: 1
matrix:
component: [frontend, backend, broker]
uses: equinor/armada/.github/workflows/update_kubernetes_deployment.yml@main
with:
environment: staging
registry: roboticsstagingacr.azurecr.io
image_name: robotics/flotilla-${{ matrix.component }}
tag: ${{ github.event.release.tag_name }}
author_name: ${{ github.event.release.author.login }}
infrastructure_repository: equinor/robotics-infrastructure
commit_message_service_name: Flotilla
secrets:
deploy_key: ${{ secrets.ROBOTICS_INFRASTRUCTURE_DEPLOY_KEY }}