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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build and Push Price Service Image
on:
push:
tags:
- pyth-price-service-v*
- pyth-price-server-v*
workflow_dispatch:
inputs:
dispatch_description:
Expand All @@ -13,18 +13,18 @@ permissions:
contents: read
id-token: write
jobs:
price-service-image:
price-server-image:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set image tag to version of the git tag
if: ${{ startsWith(github.ref, 'refs/tags/pyth-price-service-v') }}
if: ${{ startsWith(github.ref, 'refs/tags/pyth-price-server-v') }}
run: |
PREFIX="refs/tags/pyth-price-service-"
PREFIX="refs/tags/pyth-price-server-"
VERSION="${GITHUB_REF:${#PREFIX}}"
echo "IMAGE_TAG=${VERSION}" >> "${GITHUB_ENV}"
- name: Set image tag to the git commit hash
if: ${{ !startsWith(github.ref, 'refs/tags/pyth-price-service-v') }}
if: ${{ !startsWith(github.ref, 'refs/tags/pyth-price-server-v') }}
run: |
echo "IMAGE_TAG=${{ github.sha }}" >> "${GITHUB_ENV}"
- uses: aws-actions/configure-aws-credentials@8a84b07f2009032ade05a88a28750d733cc30db1
Expand All @@ -38,7 +38,7 @@ jobs:
AWS_REGION: us-east-1
- run: |
DOCKER_BUILDKIT=1 docker build -f tilt_devnet/docker_images/Dockerfile.wasm -o type=local,dest=. .
DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f price_service/Dockerfile.price_service .
DOCKER_BUILDKIT=1 docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f price_service/server/Dockerfile .
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
env:
ECR_REGISTRY: public.ecr.aws
Expand Down
12 changes: 6 additions & 6 deletions Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ docker_build(
k8s_yaml_with_ns("tilt_devnet/k8s/check-attestations.yaml")
k8s_resource(
"check-attestations",
resource_deps = ["pyth-price-service", "pyth", "p2w-attest"],
resource_deps = ["pyth-price-server", "pyth", "p2w-attest"],
labels = ["pyth"],
trigger_mode = trigger_mode,
)
Expand Down Expand Up @@ -237,15 +237,15 @@ k8s_resource(
labels = ["pyth"]
)

# Pyth Price service
# Pyth Price server
docker_build(
ref = "pyth-price-service",
ref = "pyth-price-server",
context = ".",
dockerfile = "price_service/Dockerfile.price_service",
dockerfile = "price_service/server/Dockerfile",
)
k8s_yaml_with_ns("tilt_devnet/k8s/pyth-price-service.yaml")
k8s_yaml_with_ns("tilt_devnet/k8s/pyth-price-server.yaml")
k8s_resource(
"pyth-price-service",
"pyth-price-server",
resource_deps = ["pyth", "p2w-attest", "spy", "eth-devnet", "wasm-gen"],
port_forwards = [
port_forward(4202, container_port = 4200, name = "Rest API (Status + Query) [:4202]", host = webHost),
Expand Down
11 changes: 11 additions & 0 deletions price_service/client/js/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off",
},
};
1 change: 1 addition & 0 deletions price_service/client/js/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib/
File renamed without changes.
Loading