Skip to content

Commit

Permalink
Merge pull request #32 from weaveVM/test-solidity-contracts
Browse files Browse the repository at this point in the history
CI
  • Loading branch information
andreespirela authored Aug 9, 2024
2 parents 110986b + 45e9d8f commit 609e4c1
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/gcp-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,21 +61,22 @@ jobs:
echo "::set-output name=tag::${tag}"
echo "Docker tag: ${tag}"
- name: Test Docker
run: |-
docker build . -t wevm:local
mkdir -m 777 .testnet
cd .testnet
git clone https://github.com/weaveVM/wvm-docker-testnet.git .
echo "${{ secrets.GCP_CREDENTIALS_JSON }}" > ./execution/key.json
docker compose up -d
SIGNER_KEY=${{ secrets.TEST_SIGNER_KEY }} node test.js
docker compose down
- name: Build and Push Container
run: |-
docker build . -t wevm
docker tag wevm us-east1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_ARTIFACT_REPO }}/wevm:${{ steps.get-tag.outputs.short_ref }}
docker tag wevm us-east1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_ARTIFACT_REPO }}/wevm:${{ steps.tag.outputs.tag }}
docker push "us-east1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_ARTIFACT_REPO }}/wevm:${{ steps.get-tag.outputs.short_ref }}"
docker push "us-east1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_ARTIFACT_REPO }}/wevm:${{ steps.tag.outputs.tag }}"
# - id: docker-push-tagged
# name: Tag Docker image and push to Google Artifact Registry
# uses: docker/build-push-action@v6
# with:
# context: .
# push: true
# tags: |
# wevm
# us-east1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_ARTIFACT_REPO }}/wevm:${{ steps.get-tag.outputs.short_ref }}
# us-east1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_ARTIFACT_REPO }}/wevm:${{ steps.tag.outputs.tag }}
docker push "us-east1-docker.pkg.dev/${{ secrets.GCP_PROJECT_ID }}/${{ secrets.GCP_ARTIFACT_REPO }}/wevm:${{ steps.tag.outputs.tag }}"

0 comments on commit 609e4c1

Please sign in to comment.