|
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