Skip to content

Commit 466ebbd

Browse files
committed
Retarget staging and prod deployments to robotics registries
1 parent b108c38 commit 466ebbd

2 files changed

Lines changed: 4 additions & 30 deletions

File tree

.github/workflows/deploy_to_staging.yml

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -53,32 +53,6 @@ jobs:
5353
registry_password: ${{ secrets.GITHUB_TOKEN }}
5454
registry_username: ${{ github.actor }}
5555

56-
build-and-push-latest-release-images-to-aurora-prod-registry:
57-
name: Build and push latest release images to aurora prod registry
58-
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
59-
permissions:
60-
contents: read
61-
packages: write
62-
strategy:
63-
matrix:
64-
include:
65-
- image_name: robotics/sara
66-
path_to_dockerfile: Dockerfile
67-
path_to_context: .
68-
- image_name: robotics/workflow-notifier
69-
path_to_dockerfile: workflow-notifier/Dockerfile
70-
path_to_context: workflow-notifier
71-
with:
72-
registry: auroraprodacr.azurecr.io
73-
image_name: ${{ matrix.image_name }}
74-
tag: "${{ github.event.release.tag_name }}"
75-
secondary_tag: latest
76-
path_to_dockerfile: ${{ matrix.path_to_dockerfile }}
77-
path_to_context: ${{ matrix.path_to_context }}
78-
secrets:
79-
registry_password: ${{ secrets.ROBOTICS_AURORAPRODACR_PASSWORD }}
80-
registry_username: ${{ secrets.ROBOTICS_AURORAPRODACR_USERNAME }}
81-
8256
build-and-push-latest-release-images-to-robotics-staging-registry:
8357
name: Build and push latest release images to robotics staging registry
8458
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
@@ -107,7 +81,7 @@ jobs:
10781

10882
deploy:
10983
name: Update deployment in Staging
110-
needs: build-and-push-latest-release-images-to-aurora-prod-registry
84+
needs: build-and-push-latest-release-images-to-robotics-staging-registry
11185
uses: equinor/armada/.github/workflows/update_kubernetes_deployment.yml@main
11286
permissions:
11387
contents: read
@@ -119,7 +93,7 @@ jobs:
11993
- image_name: robotics/workflow-notifier
12094
with:
12195
environment: staging
122-
registry: auroraprodacr.azurecr.io
96+
registry: roboticsstagingacr.azurecr.io
12397
image_name: ${{ matrix.image_name }}
12498
tag: ${{ github.event.release.tag_name }}
12599
author_name: ${{ github.event.release.author.login }}

.github/workflows/promote_to_production.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# Search for the exact line referring to the sara image to avoid getting the other
3333
# lines containing sara (e.g. sara-anonymizer)
3434
run: |
35-
TAG_LINE_NUMBER=$(($(grep -n -x " newName: auroraprodacr.azurecr.io/robotics/sara" k8s_kustomize/overlays/staging/kustomization.yaml | cut --delimiter=":" --fields=1)+1))
35+
TAG_LINE_NUMBER=$(($(grep -n -x " newName: roboticsstagingacr.azurecr.io/robotics/sara" k8s_kustomize/overlays/staging/kustomization.yaml | cut --delimiter=":" --fields=1)+1))
3636
VERSION_TAG=$(sed -n "${TAG_LINE_NUMBER}p" k8s_kustomize/overlays/staging/kustomization.yaml | cut --delimiter=":" --fields=2)
3737
echo "tag=$VERSION_TAG" >> "$GITHUB_OUTPUT"
3838
@@ -92,7 +92,7 @@ jobs:
9292
with:
9393
environment: production
9494
tag: ${{ needs.get_staging_version.outputs.versionTag }}
95-
registry: auroraprodacr.azurecr.io
95+
registry: roboticsprodacr.azurecr.io
9696
image_name: ${{ matrix.image_name }}
9797
author_name: ${{ github.actor }}
9898
infrastructure_repository: equinor/analytics-infrastructure

0 commit comments

Comments
 (0)