Skip to content

Commit

Permalink
Merge pull request #158 from neonevm/fix-ci
Browse files Browse the repository at this point in the history
fix dockerize
  • Loading branch information
kristinaNikolaevaa authored Dec 1, 2023
2 parents 659c3f3 + d885c42 commit 7bcb9dd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/actions/dockerize-neon-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
image_tag: # id of input
description: 'neon tests image tag'
required: true
org_name:
description: 'docker hub organization name'
required: true
oz_branch:
description: 'branch name for oz tests'
required: true
Expand All @@ -26,7 +29,7 @@ runs:
id: docker_pipeline
shell: bash
run: |
image_id="${{ vars.DOCKERHUB_ORG_NAME }}/neon_tests"
image_id="${{ inputs.org_name }}/neon_tests"
delimeter=$(printf "%0.s-" {1..30})
echo " ${delimeter} Build new docker image ${image_id} ${delimeter}"
docker build . --no-cache --tag ${image_id}:${{ inputs.image_tag }} --build-arg OZ_BRANCH='${{ inputs.oz_branch }}'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
uses: ./.github/actions/dockerize-neon-tests
with:
image_tag: ${{ github.sha }}
org_name: ${{ vars.DOCKERHUB_ORG_NAME }}
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
prepare-env:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/economy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
id: requirements
uses: ./.github/actions/dockerize-neon-tests
with:
org_name: ${{ vars.DOCKERHUB_ORG_NAME }}
image_tag: ${{ github.sha }}
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/openzeppelin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ jobs:
uses: ./.github/actions/dockerize-neon-tests
with:
image_tag: ${{ github.sha }}
org_name: ${{ vars.DOCKERHUB_ORG_NAME }}
docker_username: ${{ secrets.DOCKER_USERNAME }}
docker_password: ${{ secrets.DOCKER_PASSWORD }}
prepare-env:
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ RUN mkdir -p ${DOWNLOAD_PATH} && \
chmod -R 755 ${DOWNLOAD_PATH}

COPY deploy/infra/compile_contracts.sh compatibility/openzeppelin-contracts
RUN chmod +x compatibility/openzeppelin-contracts/compile_contracts.sh
RUN cd compatibility/openzeppelin-contracts npm set audit false
RUN cd compatibility/openzeppelin-contracts && npm ci
RUN cd compatibility/openzeppelin-contracts && ./compile_contracts.sh

0 comments on commit 7bcb9dd

Please sign in to comment.