Skip to content

Commit

Permalink
ci(general): integrates catalyst-forge (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgilman authored Sep 23, 2024
1 parent ac764d6 commit d728f10
Show file tree
Hide file tree
Showing 12 changed files with 75 additions and 11 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,6 @@ permissions:

jobs:
ci:
uses: input-output-hk/catalyst-ci/.github/workflows/ci.yml@master
uses: input-output-hk/catalyst-forge/.github/workflows/ci.yml@master
with:
aws_ecr_registry: 332405224602.dkr.ecr.eu-central-1.amazonaws.com
aws_role_arn: arn:aws:iam::332405224602:role/ci
aws_region: eu-central-1
secrets:
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
dockerhub_username: ${{ secrets.DOCKERHUB_USERNAME }}
earthly_runner_address: ${{ secrets.EARTHLY_SATELLITE_ADDRESS }}
earthly_runner_secret: ${{ secrets.EARTHLY_RUNNER_SECRET }}
forge_version: latest
51 changes: 51 additions & 0 deletions blueprint.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: "1.0"
global: {
ci: {
local: [
"^check(-.*)?$",
"^build(-.*)?$",
"^package(-.*)?$",
"^test(-.*)?$",
"^release(-.*)?$",
"^publish(-.*)?$",
]
registries: [
ci.providers.aws.registry,
]
providers: {
aws: {
region: "eu-central-1"
registry: "332405224602.dkr.ecr.eu-central-1.amazonaws.com"
role: "arn:aws:iam::332405224602:role/ci"
}

docker: credentials: {
provider: "aws"
path: "global/ci/docker"
}

earthly: {
credentials: {
provider: "aws"
path: "global/ci/earthly"
}
org: "Catalyst"
satellite: "ci"
version: "0.8.15"
}

github: registry: "ghcr.io"
}
secrets: [
{
name: "GITHUB_TOKEN"
optional: true
provider: "env"
path: "GITHUB_TOKEN"
},
]
tagging: {
strategy: "commit"
}
}
}
2 changes: 2 additions & 0 deletions catalyst-gateway/blueprint.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1.0.0"
project: name: "gateway"
2 changes: 2 additions & 0 deletions catalyst-gateway/event-db/blueprint.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1.0.0"
project: name: "gateway-event-db"
2 changes: 2 additions & 0 deletions catalyst-gateway/tests/api_tests/blueprint.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1.0.0"
project: name: "gateway-api-tests"
2 changes: 2 additions & 0 deletions catalyst-gateway/tests/blueprint.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1.0.0"
project: name: "catalyst-gateway-tests"
2 changes: 2 additions & 0 deletions catalyst-gateway/tests/schemathesis_tests/blueprint.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1.0.0"
project: name: "gateway-schema-tests"
6 changes: 4 additions & 2 deletions catalyst_voices/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,8 @@ package:

publish:
FROM +package
ARG tag='latest'

SAVE IMAGE voices-frontend:$tag
ARG container="voices"
ARG tag="latest"

SAVE IMAGE ${container}:${tag}
2 changes: 2 additions & 0 deletions catalyst_voices/blueprint.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1.0.0"
project: name: "voices"
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1.0.0"
project: name: "voices-wallet-automation-test"
2 changes: 2 additions & 0 deletions docs/blueprint.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1.0.0"
project: name: "voices-docs"
2 changes: 2 additions & 0 deletions utilities/wallet-tester/blueprint.cue
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
version: "1.0.0"
project: name: "voices-wallet-tester"

0 comments on commit d728f10

Please sign in to comment.