From a520b4129ae6b2baa6c37f3fa5ee5f5fa644b66f Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Fri, 8 Nov 2024 18:23:42 +0000 Subject: [PATCH 1/3] fix dockerfile --- .github/workflows/push-price-pusher-image.yml | 5 +---- Dockerfile.node | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/push-price-pusher-image.yml b/.github/workflows/push-price-pusher-image.yml index f0806df32d..eb99ff5a9b 100644 --- a/.github/workflows/push-price-pusher-image.yml +++ b/.github/workflows/push-price-pusher-image.yml @@ -1,8 +1,6 @@ name: Build and Push Price Pusher Image on: - push: - tags: - - pyth-price-pusher-v* + pull: workflow_dispatch: inputs: dispatch_description: @@ -40,7 +38,6 @@ jobs: id: ecr_login - run: | DOCKER_BUILDKIT=1 docker build --build-arg package="@pythnetwork/price-pusher" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.node . - docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG env: ECR_REGISTRY: public.ecr.aws ECR_REPOSITORY: pyth-network/xc-price-pusher diff --git a/Dockerfile.node b/Dockerfile.node index bcc1d6e25e..0ba4e35015 100644 --- a/Dockerfile.node +++ b/Dockerfile.node @@ -2,7 +2,7 @@ FROM node:20.17.0-slim@sha256:2394e403d45a644e41ac2a15b6f843a7d4a99ad24be48c2798 WORKDIR /usr/src/pyth ENV PNPM_HOME="/pnpm" ENV PATH="$PNPM_HOME:$PATH" -RUN apt-get update && apt-get install -y git python3 make gcc g++ && corepack enable +RUN apt-get update && apt-get install -y git python3 make gcc g++ curl && corepack enable COPY ./ . RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile From ade090eed631c02a1127885ee8ae5de1c4d776e8 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Fri, 8 Nov 2024 18:25:42 +0000 Subject: [PATCH 2/3] fix typo --- .github/workflows/push-price-pusher-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/push-price-pusher-image.yml b/.github/workflows/push-price-pusher-image.yml index eb99ff5a9b..9d3c40f99b 100644 --- a/.github/workflows/push-price-pusher-image.yml +++ b/.github/workflows/push-price-pusher-image.yml @@ -1,6 +1,6 @@ name: Build and Push Price Pusher Image on: - pull: + pull_request: workflow_dispatch: inputs: dispatch_description: From 6e176753fab010e22783b7a4cde7ad4cb9fe678c Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Fri, 8 Nov 2024 18:29:59 +0000 Subject: [PATCH 3/3] clean --- .github/workflows/push-price-pusher-image.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push-price-pusher-image.yml b/.github/workflows/push-price-pusher-image.yml index 9d3c40f99b..f0806df32d 100644 --- a/.github/workflows/push-price-pusher-image.yml +++ b/.github/workflows/push-price-pusher-image.yml @@ -1,6 +1,8 @@ name: Build and Push Price Pusher Image on: - pull_request: + push: + tags: + - pyth-price-pusher-v* workflow_dispatch: inputs: dispatch_description: @@ -38,6 +40,7 @@ jobs: id: ecr_login - run: | DOCKER_BUILDKIT=1 docker build --build-arg package="@pythnetwork/price-pusher" -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG -f Dockerfile.node . + docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG env: ECR_REGISTRY: public.ecr.aws ECR_REPOSITORY: pyth-network/xc-price-pusher