Skip to content

Commit

Permalink
ci: use gcp registry for integration tests (#1958)
Browse files Browse the repository at this point in the history
* ci: use gcp registry for integration tests

* fix push

* use correct runner

* install node
  • Loading branch information
alvicsam authored Feb 12, 2025
1 parent 5886b59 commit ebf9a62
Showing 1 changed file with 40 additions and 3 deletions.
43 changes: 40 additions & 3 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,20 @@ concurrency:
permissions: {}

env:
IMAGE_NAME: paritypr/zombienet
IMAGE_NAME: europe-docker.pkg.dev/parity-ci-2024/temp-images/zombienet
VERSION: ${{ github.sha }}
RUN_IN_CONTAINER: 1
FF_DISABLE_UMASK_FOR_DOCKER_EXECUTOR: 1
GHA_CLUSTER_SERVER_ADDR: "https://kubernetes.default:443"

jobs:
build_push_image:
name: Build and Push Docker image to Docker Hub
build_push_image_master:
name: Build and Push Docker image to Docker Hub on main branch
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
timeout-minutes: 30
env:
IMAGE_NAME: paritypr/zombienet
steps:
- name: Check out the repo
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v.4.2.0
Expand Down Expand Up @@ -52,6 +55,40 @@ jobs:
tags: |
${{ env.IMAGE_NAME }}:${{ env.VERSION }}
${{ env.IMAGE_NAME }}:latest
build_push_image:
name: Build and Push Docker image to GCP
runs-on: parity-default
timeout-minutes: 30
steps:
- name: Check out the repo
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v.4.2.0

- uses: actions/setup-node@v4
with:
node-version: 20

- name: npm build
run: |
cd javascript
npm install
npm dedupe
npm run clean
npm run build
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v2"
- name: "gcloud info"
run: "gcloud info"
- name: "Auth in gcloud registry"
run: "gcloud auth configure-docker europe-docker.pkg.dev --quiet"

- name: build
run: |
docker build \
-t ${{ env.IMAGE_NAME }}:${{ env.VERSION }} \
-f ./scripts/ci/docker/zombienet_injected.Dockerfile \
.
docker push "${{ env.IMAGE_NAME }}:${{ env.VERSION }}"
set-variables:
name: Set variables
Expand Down

0 comments on commit ebf9a62

Please sign in to comment.