Skip to content

Commit 3ee1a8c

Browse files
committed
Stop publishing to Aurora and ghcr; publish and deploy via robotics staging ACR
1 parent 8781b2b commit 3ee1a8c

2 files changed

Lines changed: 99 additions & 154 deletions

File tree

Lines changed: 56 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,56 @@
1-
name: Deploy to Development
2-
3-
concurrency:
4-
group: development-concurrency
5-
cancel-in-progress: true
6-
7-
permissions:
8-
contents: read
9-
packages: write
10-
11-
on:
12-
push:
13-
branches:
14-
- "main"
15-
16-
jobs:
17-
get-short-sha:
18-
outputs:
19-
tag: ${{ steps.get-tag.outputs.tag }}
20-
runs-on: ubuntu-latest
21-
steps:
22-
- id: get-tag
23-
run: |
24-
SHA_SHORT=$(echo ${{ github.sha }} | cut -c1-8)
25-
echo "tag=$SHA_SHORT" >> "$GITHUB_OUTPUT"
26-
27-
build-and-push-dev-image-to-ghcr:
28-
name: Build and push dev image to github container registry
29-
needs: get-short-sha
30-
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
31-
permissions:
32-
contents: read
33-
packages: write
34-
with:
35-
registry: ghcr.io
36-
image_name: ${{ github.repository }}
37-
tag: "dev.${{ needs.get-short-sha.outputs.tag }}"
38-
secondary_tag: dev
39-
path_to_dockerfile: Dockerfile
40-
path_to_context: .
41-
secrets:
42-
registry_password: ${{ secrets.GITHUB_TOKEN }}
43-
registry_username: ${{ github.actor }}
44-
45-
deploy:
46-
name: Update deployment in Development
47-
needs: [build-and-push-dev-image-to-ghcr, get-short-sha]
48-
uses: equinor/armada/.github/workflows/update_kubernetes_deployment.yml@main
49-
with:
50-
environment: development
51-
registry: ghcr.io
52-
image_name: ${{ github.repository }}
53-
tag: "dev.${{ needs.get-short-sha.outputs.tag }}"
54-
author_email: ${{ github.event.head_commit.author.email }}
55-
author_name: ${{ github.event.head_commit.author.name }}
56-
infrastructure_repository: equinor/robotics-infrastructure
57-
secrets:
58-
deploy_key: ${{ secrets.ROBOTICS_INFRASTRUCTURE_DEPLOY_KEY }}
1+
name: Deploy to Development
2+
3+
concurrency:
4+
group: development-concurrency
5+
cancel-in-progress: true
6+
7+
permissions:
8+
contents: read
9+
10+
on:
11+
push:
12+
branches:
13+
- "main"
14+
15+
jobs:
16+
get-short-sha:
17+
outputs:
18+
tag: ${{ steps.get-tag.outputs.tag }}
19+
runs-on: ubuntu-latest
20+
steps:
21+
- id: get-tag
22+
run: |
23+
SHA_SHORT=$(echo ${{ github.sha }} | cut -c1-8)
24+
echo "tag=$SHA_SHORT" >> "$GITHUB_OUTPUT"
25+
26+
build-and-push-dev-image-to-robotics-staging-registry:
27+
name: Build and push dev image to robotics staging container registry
28+
needs: get-short-sha
29+
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
30+
permissions:
31+
contents: read
32+
with:
33+
registry: roboticsstagingacr.azurecr.io
34+
image_name: robotics/isar-robot
35+
tag: "dev.${{ needs.get-short-sha.outputs.tag }}"
36+
secondary_tag: dev
37+
path_to_dockerfile: Dockerfile
38+
path_to_context: .
39+
secrets:
40+
registry_password: ${{ secrets.ROBOTICS_ROBOTICSSTAGINGACR_PASSWORD }}
41+
registry_username: ${{ secrets.ROBOTICS_ROBOTICSSTAGINGACR_USERNAME }}
42+
43+
deploy:
44+
name: Update deployment in Development
45+
needs: [build-and-push-dev-image-to-robotics-staging-registry, get-short-sha]
46+
uses: equinor/armada/.github/workflows/update_kubernetes_deployment.yml@main
47+
with:
48+
environment: development
49+
registry: roboticsstagingacr.azurecr.io
50+
image_name: robotics/isar-robot
51+
tag: "dev.${{ needs.get-short-sha.outputs.tag }}"
52+
author_email: ${{ github.event.head_commit.author.email }}
53+
author_name: ${{ github.event.head_commit.author.name }}
54+
infrastructure_repository: equinor/robotics-infrastructure
55+
secrets:
56+
deploy_key: ${{ secrets.ROBOTICS_INFRASTRUCTURE_DEPLOY_KEY }}
Lines changed: 43 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,43 @@
1-
name: Deploy to Staging
2-
3-
concurrency:
4-
group: staging-concurrency
5-
cancel-in-progress: true
6-
7-
permissions:
8-
contents: read
9-
packages: write
10-
11-
on:
12-
release:
13-
types: [published]
14-
15-
jobs:
16-
build-and-push-latest-release-image-to-ghcr:
17-
name: Build and push latest release image to github container registry
18-
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
19-
permissions:
20-
contents: read
21-
packages: write
22-
with:
23-
registry: ghcr.io
24-
image_name: ${{ github.repository }}
25-
tag: "${{ github.event.release.tag_name }}"
26-
secondary_tag: latest
27-
path_to_dockerfile: Dockerfile
28-
path_to_context: .
29-
secrets:
30-
registry_password: ${{ secrets.GITHUB_TOKEN }}
31-
registry_username: ${{ github.actor }}
32-
33-
build-and-push-latest-release-image-to-aurora-dev-registry:
34-
name: Build and push latest release image to aurora dev registry
35-
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
36-
permissions:
37-
contents: read
38-
packages: write
39-
with:
40-
registry: auroradevacr.azurecr.io
41-
image_name: robotics/isar-robot
42-
tag: "${{ github.event.release.tag_name }}"
43-
secondary_tag: latest
44-
path_to_dockerfile: Dockerfile
45-
path_to_context: .
46-
secrets:
47-
registry_password: ${{ secrets.AURORA_CONTAINER_REGISTRY_DEV_PASSWORD }}
48-
registry_username: ${{ secrets.AURORA_CONTAINER_REGISTRY_DEV_USERNAME }}
49-
50-
build-and-push-latest-release-image-to-aurora-prod-registry:
51-
name: Build and push latest release image to aurora prod registry
52-
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
53-
permissions:
54-
contents: read
55-
packages: write
56-
with:
57-
registry: auroraprodacr.azurecr.io
58-
image_name: robotics/isar-robot
59-
tag: "${{ github.event.release.tag_name }}"
60-
secondary_tag: latest
61-
path_to_dockerfile: Dockerfile
62-
path_to_context: .
63-
secrets:
64-
registry_password: ${{ secrets.AURORA_CONTAINER_REGISTRY_PROD_PASSWORD }}
65-
registry_username: ${{ secrets.AURORA_CONTAINER_REGISTRY_PROD_USERNAME }}
66-
67-
build-and-push-latest-release-image-to-robotics-staging-registry:
68-
name: Build and push latest release image to robotics staging registry
69-
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
70-
permissions:
71-
contents: read
72-
packages: write
73-
with:
74-
registry: roboticsstagingacr.azurecr.io
75-
image_name: robotics/isar-robot
76-
tag: "${{ github.event.release.tag_name }}"
77-
secondary_tag: latest
78-
path_to_dockerfile: Dockerfile
79-
path_to_context: .
80-
secrets:
81-
registry_password: ${{ secrets.ROBOTICS_ROBOTICSSTAGINGACR_PASSWORD }}
82-
registry_username: ${{ secrets.ROBOTICS_ROBOTICSSTAGINGACR_USERNAME }}
83-
84-
deploy:
85-
name: Update deployment in Staging
86-
needs: build-and-push-latest-release-image-to-aurora-prod-registry
87-
uses: equinor/armada/.github/workflows/update_kubernetes_deployment.yml@main
88-
with:
89-
environment: staging
90-
registry: auroraprodacr.azurecr.io
91-
image_name: robotics/isar-robot
92-
tag: ${{ github.event.release.tag_name }}
93-
author_name: ${{ github.event.release.author.login }}
94-
infrastructure_repository: equinor/robotics-infrastructure
95-
secrets:
96-
deploy_key: ${{ secrets.ROBOTICS_INFRASTRUCTURE_DEPLOY_KEY }}
1+
name: Deploy to Staging
2+
3+
concurrency:
4+
group: staging-concurrency
5+
cancel-in-progress: true
6+
7+
permissions:
8+
contents: read
9+
10+
on:
11+
release:
12+
types: [published]
13+
14+
jobs:
15+
build-and-push-latest-release-image-to-robotics-staging-registry:
16+
name: Build and push latest release image to robotics staging registry
17+
uses: equinor/armada/.github/workflows/build_and_publish_docker_image_to_container_registry.yml@main
18+
permissions:
19+
contents: read
20+
with:
21+
registry: roboticsstagingacr.azurecr.io
22+
image_name: robotics/isar-robot
23+
tag: "${{ github.event.release.tag_name }}"
24+
secondary_tag: latest
25+
path_to_dockerfile: Dockerfile
26+
path_to_context: .
27+
secrets:
28+
registry_password: ${{ secrets.ROBOTICS_ROBOTICSSTAGINGACR_PASSWORD }}
29+
registry_username: ${{ secrets.ROBOTICS_ROBOTICSSTAGINGACR_USERNAME }}
30+
31+
deploy:
32+
name: Update deployment in Staging
33+
needs: build-and-push-latest-release-image-to-robotics-staging-registry
34+
uses: equinor/armada/.github/workflows/update_kubernetes_deployment.yml@main
35+
with:
36+
environment: staging
37+
registry: roboticsstagingacr.azurecr.io
38+
image_name: robotics/isar-robot
39+
tag: ${{ github.event.release.tag_name }}
40+
author_name: ${{ github.event.release.author.login }}
41+
infrastructure_repository: equinor/robotics-infrastructure
42+
secrets:
43+
deploy_key: ${{ secrets.ROBOTICS_INFRASTRUCTURE_DEPLOY_KEY }}

0 commit comments

Comments
 (0)