Skip to content

Version 1.0.4

Version 1.0.4 #90

name: Deploy to Staging
concurrency:
group: staging-concurrency
cancel-in-progress: false
permissions:
contents: read
packages: write
pull-requests: read
on:
release:
types: [published]
jobs:
run_migrations:
name: Update database in Staging
uses: equinor/armada/.github/workflows/run_dotnet_migrations.yml@main
with:
environment: Staging
checkout_ref: ${{ github.event.release.tag_name }}
working_directory: api
secrets:
client_id: ${{ secrets.CLIENTID }}
client_secret: ${{ secrets.CLIENTSECRET }}
build-and-push-latest-release-images-to-ghcr:
name: Build and push latest release images to github container registry
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- image_name: ${{ github.repository }}
path_to_dockerfile: Dockerfile
path_to_context: .
- image_name: ${{ github.repository }}-workflow-notifier
path_to_dockerfile: workflow-notifier/Dockerfile
path_to_context: workflow-notifier
with:
registry: ghcr.io
image_name: ${{ matrix.image_name }}
tag: "${{ github.event.release.tag_name }}"
secondary_tag: latest
path_to_dockerfile: ${{ matrix.path_to_dockerfile }}
path_to_context: ${{ matrix.path_to_context }}
secrets:
registry_password: ${{ secrets.GITHUB_TOKEN }}
registry_username: ${{ github.actor }}
build-and-push-latest-release-images-to-aurora-prod-registry:
name: Build and push latest release images to aurora prod registry
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
permissions:
contents: read
packages: write
strategy:
matrix:
include:
- image_name: robotics/sara
path_to_dockerfile: Dockerfile
path_to_context: .
- image_name: robotics/workflow-notifier
path_to_dockerfile: workflow-notifier/Dockerfile
path_to_context: workflow-notifier
with:
registry: auroraprodacr.azurecr.io
image_name: ${{ matrix.image_name }}
tag: "${{ github.event.release.tag_name }}"
secondary_tag: latest
path_to_dockerfile: ${{ matrix.path_to_dockerfile }}
path_to_context: ${{ matrix.path_to_context }}
secrets:
registry_password: ${{ secrets.ROBOTICS_AURORAPRODACR_PASSWORD }}
registry_username: ${{ secrets.ROBOTICS_AURORAPRODACR_USERNAME }}
deploy:
name: Update deployment in Staging
needs: build-and-push-latest-release-images-to-aurora-prod-registry
uses: equinor/armada/.github/workflows/update_kubernetes_deployment.yml@main
permissions:
contents: read
strategy:
max-parallel: 1
matrix:
include:
- image_name: robotics/sara
- image_name: robotics/workflow-notifier
with:
environment: staging
registry: auroraprodacr.azurecr.io
image_name: ${{ matrix.image_name }}
tag: ${{ github.event.release.tag_name }}
author_name: ${{ github.event.release.author.login }}
infrastructure_repository: equinor/analytics-infrastructure
secrets:
deploy_key: ${{ secrets.ANALYTICS_INFRASTRUCTURE_DEPLOY_KEY }}