Version 2.2.0 #48
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to Staging | |
| concurrency: | |
| group: staging-concurrency | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| packages: write | |
| on: | |
| release: | |
| types: [published] | |
| jobs: | |
| build-and-push-latest-release-image-to-ghcr: | |
| name: Build and push latest release image to github container registry | |
| uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main | |
| permissions: | |
| contents: read | |
| packages: write | |
| with: | |
| registry: ghcr.io | |
| image_name: ${{ github.repository }} | |
| tag: "${{ github.event.release.tag_name }}" | |
| secondary_tag: latest | |
| path_to_dockerfile: Dockerfile | |
| path_to_context: . | |
| secrets: | |
| registry_password: ${{ secrets.GITHUB_TOKEN }} | |
| registry_username: ${{ github.actor }} | |
| build-and-push-latest-release-image-to-aurora-dev-registry: | |
| name: Build and push latest release image to aurora dev registry | |
| uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main | |
| permissions: | |
| contents: read | |
| packages: write | |
| with: | |
| registry: auroradevacr.azurecr.io | |
| image_name: robotics/isar-robot | |
| tag: "${{ github.event.release.tag_name }}" | |
| secondary_tag: latest | |
| path_to_dockerfile: Dockerfile | |
| path_to_context: . | |
| secrets: | |
| registry_password: ${{ secrets.AURORA_CONTAINER_REGISTRY_DEV_PASSWORD }} | |
| registry_username: ${{ secrets.AURORA_CONTAINER_REGISTRY_DEV_USERNAME }} | |
| build-and-push-latest-release-image-to-aurora-prod-registry: | |
| name: Build and push latest release image to aurora prod registry | |
| uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main | |
| permissions: | |
| contents: read | |
| packages: write | |
| with: | |
| registry: auroraprodacr.azurecr.io | |
| image_name: robotics/isar-robot | |
| tag: "${{ github.event.release.tag_name }}" | |
| secondary_tag: latest | |
| path_to_dockerfile: Dockerfile | |
| path_to_context: . | |
| secrets: | |
| registry_password: ${{ secrets.AURORA_CONTAINER_REGISTRY_PROD_PASSWORD }} | |
| registry_username: ${{ secrets.AURORA_CONTAINER_REGISTRY_PROD_USERNAME }} | |
| deploy: | |
| name: Update deployment in Staging | |
| needs: build-and-push-latest-release-image-to-aurora-prod-registry | |
| uses: equinor/armada/.github/workflows/update_kubernetes_deployment.yml@main | |
| with: | |
| environment: staging | |
| registry: auroraprodacr.azurecr.io | |
| image_name: robotics/isar-robot | |
| tag: ${{ github.event.release.tag_name }} | |
| author_name: ${{ github.event.release.author.login }} | |
| infrastructure_repository: equinor/robotics-infrastructure | |
| secrets: | |
| deploy_key: ${{ secrets.ROBOTICS_INFRASTRUCTURE_DEPLOY_KEY }} |