Skip to content

Commit

Permalink
comment out node build and push steps in CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trungbach committed Jan 20, 2025
1 parent fcdc9f0 commit 5afc173
Showing 1 changed file with 56 additions and 56 deletions.
112 changes: 56 additions & 56 deletions .github/workflows/node-cosmos-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,62 +93,62 @@ jobs:
run: echo ${{ steps.docker_build.outputs.digest }}


node-build-push-docker-subquery:
needs: check
if: needs.check.outputs.changes_found == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 100
token: ${{ secrets.REPO_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: oraichain
password: ${{ secrets.SQ_DOCKERHUB_TOKEN }}

## node
- name: Get updated node version
id: get-node-version
run: |
sh .github/workflows/scripts/nodeVersion.sh
- run: yarn
- name: build
run: yarn build

- name: Build and push
if: github.event_name == 'workflow_dispatch' && github.event.inputs.isLatest == 'false'
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: arm64,amd64
file: ./packages/node/Dockerfile
tags: oraichain/subql-node-cosmos:v${{ steps.get-node-version.outputs.NODE_VERSION }},
build-args: RELEASE_VERSION=${{ steps.get-node-version.outputs.NODE_VERSION }}

- name: Build and push
if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.isLatest == 'true')
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: arm64,amd64
file: ./packages/node/Dockerfile
tags: oraichain/subql-node-cosmos:v${{ steps.get-node-version.outputs.NODE_VERSION }},oraichain/subql-node-cosmos:latest
build-args: RELEASE_VERSION=${{ steps.get-node-version.outputs.NODE_VERSION }}

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
# node-build-push-docker-subquery:
# needs: check
# if: needs.check.outputs.changes_found == 'true'
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# # with:
# # fetch-depth: 100
# # token: ${{ secrets.REPO_TOKEN }}

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

# - name: Login to DockerHub
# uses: docker/login-action@v3
# with:
# username: oraichain
# password: ${{ secrets.SQ_DOCKERHUB_TOKEN }}

# ## node
# - name: Get updated node version
# id: get-node-version
# run: |
# sh .github/workflows/scripts/nodeVersion.sh

# - run: yarn
# - name: build
# run: yarn build

# - name: Build and push
# if: github.event_name == 'workflow_dispatch' && github.event.inputs.isLatest == 'false'
# uses: docker/build-push-action@v2
# with:
# context: .
# push: true
# platforms: arm64,amd64
# file: ./packages/node/Dockerfile
# tags: oraichain/subql-node-cosmos:v${{ steps.get-node-version.outputs.NODE_VERSION }},
# build-args: RELEASE_VERSION=${{ steps.get-node-version.outputs.NODE_VERSION }}

# - name: Build and push
# if: github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.isLatest == 'true')
# uses: docker/build-push-action@v2
# with:
# context: .
# push: true
# platforms: arm64,amd64
# file: ./packages/node/Dockerfile
# tags: oraichain/subql-node-cosmos:v${{ steps.get-node-version.outputs.NODE_VERSION }},oraichain/subql-node-cosmos:latest
# build-args: RELEASE_VERSION=${{ steps.get-node-version.outputs.NODE_VERSION }}

# - name: Image digest
# run: echo ${{ steps.docker_build.outputs.digest }}



0 comments on commit 5afc173

Please sign in to comment.