Skip to content
This repository was archived by the owner on Jul 30, 2025. It is now read-only.

Commit 84244c8

Browse files
Switch to new ECR (#287)
1 parent 837095f commit 84244c8

File tree

4 files changed

+20
-42
lines changed

4 files changed

+20
-42
lines changed

.github/actions/shielder-relayer/build-and-push/action.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ inputs:
66
required: true
77
aws-mainnet-ecr-access-key-id:
88
required: true
9-
ecr-private-host:
10-
description: ECR private host
9+
ecr-host:
10+
description: ECR host
11+
required: true
12+
ecr-registry:
13+
description: ECR registry
1114
required: true
1215

1316
outputs:
@@ -26,7 +29,7 @@ runs:
2629
id: login-private-ecr
2730
uses: docker/login-action@v2
2831
with:
29-
registry: ${{ inputs.ecr-private-host }}
32+
registry: ${{ inputs.ecr-host }}
3033
username: ${{ inputs.aws-mainnet-ecr-access-key-id }}
3134
password: ${{ inputs.aws-mainnet-ecr-access-key }}
3235
env:
@@ -46,7 +49,7 @@ runs:
4649
builder: ${{ steps.buildx.outputs.name }}
4750
file: ./crates/shielder-relayer/docker/Dockerfile.client
4851
push: true
49-
tags: "${{ inputs.ecr-private-host }}/shielder-relayer:\
52+
tags: "${{ inputs.ecr-registry }}shielder-relayer:\
5053
${{ steps.get-ref-properties.outputs.sha }}"
5154

5255
- name: OUTPUTS | Set output with docker image

.github/actions/shielder-relayer/deploy/action.yml

Lines changed: 5 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,12 @@ inputs:
1414
github-token:
1515
description: Github token
1616
required: true
17-
ecr-private-host:
18-
description: ECR private host
19-
required: true
20-
kustomize-version:
21-
description: Kustomize version
22-
required: true
2317
environment:
2418
description: Environment to deploy to
2519
type: choice
2620
options:
2721
- all
28-
- dev
2922
- stage
30-
- prod
3123
required: true
3224

3325
runs:
@@ -36,36 +28,22 @@ runs:
3628
- name: GIT | Checkout aleph-apps repo
3729
uses: actions/checkout@v4
3830
with:
39-
repository: Cardinal-Cryptography/aleph-apps
31+
repository: Cardinal-Cryptography/blanksquare-apps
4032
token: ${{ inputs.github-token }}
41-
path: "aleph-apps"
33+
path: "blanksquare-apps"
4234
ref: main
4335

4436
- name: Setup yq
4537
uses: dcarbone/[email protected]
4638
with:
4739
version: "v4.44.3"
4840

49-
- name: Update docker image tag (dev)
50-
if: ${{ inputs.environment == 'dev' || inputs.environment == 'all' }}
51-
shell: bash
52-
run: |
53-
cd aleph-apps/shielder-relayer-v2
54-
yq -i '.relayer.image.tag = "${{ inputs.image-tag }}"' dev-values.yaml
55-
5641
- name: Update docker image tag (stage)
5742
if: ${{ inputs.environment == 'stage' || inputs.environment == 'all' }}
5843
shell: bash
5944
run: |
60-
cd aleph-apps/shielder-relayer-v2
61-
yq -i '.relayer.image.tag = "${{ inputs.image-tag }}"' stage-values.yaml
62-
63-
- name: Update docker image tag (prod)
64-
if: ${{ inputs.environment == 'prod' || inputs.environment == 'all' }}
65-
shell: bash
66-
run: |
67-
cd aleph-apps/shielder-relayer-v2
68-
yq -i '.relayer.image.tag = "${{ inputs.image-tag }}"' prod-values.yaml
45+
cd blanksquare-apps/shielder-v3/stage
46+
yq -i '.shielder-relayer.relayer.image.tag = "${{ inputs.image-tag }}"' values.yaml
6947
7048
- name: GIT | Commit changes to aleph-apps repository
7149
uses: EndBug/[email protected]
@@ -78,4 +56,4 @@ runs:
7856
Updating shielder-relayer on environment: ${{ inputs.environment }}
7957
docker image tag: ${{ inputs.image-tag }}
8058
add: "*.yaml"
81-
cwd: 'aleph-apps'
59+
cwd: 'blanksquare-apps'

.github/workflows/build-and-deploy-shielder-relayer.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ on:
99
type: choice
1010
options:
1111
- all
12-
- dev
1312
- stage
14-
- prod
1513
required: true
1614

1715
jobs:
@@ -32,9 +30,10 @@ jobs:
3230
uses: ./.github/actions/shielder-relayer/build-and-push
3331
id: build_shielder_relayer
3432
with:
35-
aws-mainnet-ecr-access-key-id: ${{ secrets.AWS_MAINNET_ECR_ACCESS_KEY_ID }}
36-
aws-mainnet-ecr-access-key: ${{ secrets.AWS_MAINNET_ECR_ACCESS_KEY }}
37-
ecr-private-host: ${{ secrets.ECR_PRIVATE_HOST }}
33+
aws-mainnet-ecr-access-key-id: ${{ secrets.AWS_MAINNET_ECR_CC_ACCESS_KEY_ID }}
34+
aws-mainnet-ecr-access-key: ${{ secrets.AWS_MAINNET_ECR_CC_ACCESS_KEY }}
35+
ecr-host: ${{ vars.ECR_PUBLIC_HOST }}
36+
ecr-registry: ${{ vars.ECR_CC_RES_PUBLIC_REGISTRY }}
3837
outputs:
3938
image_tag: ${{ steps.build_shielder_relayer.outputs.image_tag }}
4039

@@ -55,5 +54,3 @@ jobs:
5554
autocommit-author: ${{ secrets.AUTOCOMMIT_AUTHOR }}
5655
autocommit-email: ${{ secrets.AUTOCOMMIT_EMAIL }}
5756
github-token: ${{ secrets.CI_GH_TOKEN }}
58-
kustomize-version: ${{ vars.KUSTOMIZE_VERSION }}
59-
ecr-private-host: ${{ secrets.ECR_PRIVATE_HOST }}

.github/workflows/build-and-push-fee-estimator.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ jobs:
1717
- name: Login to Docker Hub
1818
uses: docker/login-action@v3
1919
with:
20-
registry: ${{ secrets.ECR_PRIVATE_HOST }}
21-
username: ${{ secrets.AWS_MAINNET_ECR_ACCESS_KEY_ID }}
22-
password: ${{ secrets.AWS_MAINNET_ECR_ACCESS_KEY }}
20+
registry: ${{ vars.ECR_PUBLIC_HOST }}
21+
username: ${{ secrets.AWS_MAINNET_ECR_CC_ACCESS_KEY_ID }}
22+
password: ${{ secrets.AWS_MAINNET_ECR_CC_ACCESS_KEY }}
2323

2424
- name: Call action get-ref-properties
2525
id: get-ref-properties
@@ -47,4 +47,4 @@ jobs:
4747
push: true
4848
# yamllint disable rule:line-length
4949
tags: |
50-
${{ secrets.ECR_PRIVATE_HOST }}/fee-estimator:${{ steps.get-ref-properties.outputs.sha }}
50+
${{ vars.ECR_CC_RES_PUBLIC_REGISTRY }}fee-estimator:${{ steps.get-ref-properties.outputs.sha }}

0 commit comments

Comments
 (0)