Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 17 additions & 8 deletions .github/workflows/docker-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:

permissions:
contents: read
packages: write

jobs:
build-and-push:
Expand All @@ -22,18 +21,28 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to GHCR
uses: docker/login-action@v3
# 1) Configure AWS creds (needed for ECR auth)
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
aws-access-key-id: ${{ secrets.TF_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.TF_AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

# 2) Login to Public ECR
- name: Login to Amazon ECR Public
id: login-ecr-public
uses: aws-actions/amazon-ecr-login@v2
with:
registry-type: public

- name: Compute image tags
id: vars
run: |
# Lowercase the repo for GHCR
IMAGE="ghcr.io/${GITHUB_REPOSITORY,,}"
REGISTRY="public.ecr.aws"
ALIAS="dlc-link"
REPO="cantcost"
IMAGE="${REGISTRY}/${ALIAS}/${REPO}"

if [[ "${GITHUB_REF_TYPE}" == "tag" ]]; then
TAG_NAME="${GITHUB_REF_NAME}" # e.g. v1.2.3
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ The message is the raw log line from the Canton participant node. You can get it

#### Deploy it

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.
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.

- Change the image location in the `spec.containers.image` field. This can be a predefined one from us or your own build.
- Change the namespace everywhere for your desired namespace.
Expand Down
2 changes: 1 addition & 1 deletion zarf/deployment/devnet/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
serviceAccountName: cantcost-sa
containers:
- name: cantcost
image: ghcr.io/dlc-link/cantcost:version
image: public.ecr.aws/dlc-link/cantcost:version
imagePullPolicy: IfNotPresent
env:
# Deployment whose pods' logs you want to read
Expand Down