Skip to content

Commit 529e92a

Browse files
authored
Merge pull request #2 from DLC-link/push-to-ecr
Push to the ECR
2 parents 82c0b7b + d38fe1d commit 529e92a

3 files changed

Lines changed: 19 additions & 10 deletions

File tree

.github/workflows/docker-publish.yaml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99

1010
permissions:
1111
contents: read
12-
packages: write
1312

1413
jobs:
1514
build-and-push:
@@ -22,18 +21,28 @@ jobs:
2221
- name: Set up Docker Buildx
2322
uses: docker/setup-buildx-action@v3
2423

25-
- name: Log in to GHCR
26-
uses: docker/login-action@v3
24+
# 1) Configure AWS creds (needed for ECR auth)
25+
- name: Configure AWS credentials
26+
uses: aws-actions/configure-aws-credentials@v4
2727
with:
28-
registry: ghcr.io
29-
username: ${{ github.actor }}
30-
password: ${{ secrets.GITHUB_TOKEN }}
28+
aws-access-key-id: ${{ secrets.TF_AWS_ACCESS_KEY_ID }}
29+
aws-secret-access-key: ${{ secrets.TF_AWS_SECRET_ACCESS_KEY }}
30+
aws-region: us-east-1
31+
32+
# 2) Login to Public ECR
33+
- name: Login to Amazon ECR Public
34+
id: login-ecr-public
35+
uses: aws-actions/amazon-ecr-login@v2
36+
with:
37+
registry-type: public
3138

3239
- name: Compute image tags
3340
id: vars
3441
run: |
35-
# Lowercase the repo for GHCR
36-
IMAGE="ghcr.io/${GITHUB_REPOSITORY,,}"
42+
REGISTRY="public.ecr.aws"
43+
ALIAS="dlc-link"
44+
REPO="cantcost"
45+
IMAGE="${REGISTRY}/${ALIAS}/${REPO}"
3746
3847
if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
3948
TAG_NAME="${GITHUB_REF_NAME}" # e.g. v1.2.3

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The message is the raw log line from the Canton participant node. You can get it
103103

104104
#### Deploy it
105105

106-
You should change the values in the zarf/deployment/devnet/manifest.yaml file. Note: this is just an example, because the Kubernetes service account needs proper RBAC permissions to read the pod logs.
106+
You can find pre-built images on [our container registry](https://gallery.ecr.aws/dlc-link/cantcost). You should change the values in the zarf/deployment/devnet/manifest.yaml file. Note: this is just an example, because the Kubernetes service account needs proper RBAC permissions to read the pod logs.
107107

108108
- Change the image location in the `spec.containers.image` field. This can be a predefined one from us or your own build.
109109
- Change the namespace everywhere for your desired namespace.

zarf/deployment/devnet/manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ spec:
1616
serviceAccountName: cantcost-sa
1717
containers:
1818
- name: cantcost
19-
image: ghcr.io/dlc-link/cantcost:version
19+
image: public.ecr.aws/dlc-link/cantcost:version
2020
imagePullPolicy: IfNotPresent
2121
env:
2222
# Deployment whose pods' logs you want to read

0 commit comments

Comments
 (0)