Skip to content

Commit

Permalink
Merge pull request #8211 from OpenMined/rasswanth/comment-image-building
Browse files Browse the repository at this point in the history
temporarily commented out image building process
  • Loading branch information
rasswanth-s authored Nov 1, 2023
2 parents 8927728 + 38083cd commit 274e811
Showing 1 changed file with 73 additions and 73 deletions.
146 changes: 73 additions & 73 deletions .github/workflows/cd-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ jobs:
# twine upload -r testpypi -u __token__ -p ${{ secrets.OM_SYFT_TEST_PYPI_TOKEN }} packages/syft/dist/*
# fi

- name: Set Grid package version
id: grid-version
shell: bash
run: echo "GRID_VERSION=$(python packages/grid/VERSION)" >> $GITHUB_OUTPUT
# - name: Set Grid package version
# id: grid-version
# shell: bash
# run: echo "GRID_VERSION=$(python packages/grid/VERSION)" >> $GITHUB_OUTPUT

# Check if the version is a pre-release
- name: Check if the version is a pre-release and modify version string
Expand Down Expand Up @@ -196,81 +196,81 @@ jobs:
# ./packages/hagrid/hagrid/manifest_template.yml
# tag_name: v${{ steps.release_checks.outputs.github_release_version }}

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

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

- name: Login to Docker
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_LOGIN }}
password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Login to Docker
# uses: docker/login-action@v2
# with:
# username: ${{ secrets.DOCKER_LOGIN }}
# password: ${{ secrets.DOCKER_PASSWORD }}

- name: Docker meta for Grid-Backend
id: meta_grid_backend
uses: docker/metadata-action@v3
with:
images: openmined/grid-backend
tags: |
type=raw,value=${{ steps.grid-version.outputs.GRID_VERSION }}
type=raw,value=beta
# - name: Docker meta for Grid-Backend
# id: meta_grid_backend
# uses: docker/metadata-action@v3
# with:
# images: openmined/grid-backend
# tags: |
# type=raw,value=${{ steps.grid-version.outputs.GRID_VERSION }}
# type=raw,value=beta

- name: Build and push `grid-backend` image to DockerHub
uses: docker/build-push-action@v4
with:
context: ./packages
file: ./packages/grid/backend/backend.dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta_grid_backend.outputs.tags }}
target: backend
cache-from: type=registry,ref=${{ steps.meta_grid_backend.outputs.tags }}
cache-to: type=inline

- name: Docker meta for Grid-Frontend
id: meta_grid_frontend
uses: docker/metadata-action@v3
with:
images: openmined/grid-frontend
tags: |
type=raw,value=${{ steps.grid-version.outputs.GRID_VERSION }}
type=raw,value=beta
# - name: Build and push `grid-backend` image to DockerHub
# uses: docker/build-push-action@v4
# with:
# context: ./packages
# file: ./packages/grid/backend/backend.dockerfile
# push: true
# platforms: linux/amd64,linux/arm64
# tags: ${{ steps.meta_grid_backend.outputs.tags }}
# target: backend
# cache-from: type=registry,ref=${{ steps.meta_grid_backend.outputs.tags }}
# cache-to: type=inline

# - name: Docker meta for Grid-Frontend
# id: meta_grid_frontend
# uses: docker/metadata-action@v3
# with:
# images: openmined/grid-frontend
# tags: |
# type=raw,value=${{ steps.grid-version.outputs.GRID_VERSION }}
# type=raw,value=beta

- name: Build and push `grid-frontend` image to DockerHub
uses: docker/build-push-action@v4
with:
context: ./packages/grid/frontend
file: ./packages/grid/frontend/frontend.dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta_grid_frontend.outputs.tags }}
target: grid-ui-development
cache-from: type=registry,ref= ${{ steps.meta_grid_frontend.outputs.tags }}
cache-to: type=inline

- name: Docker meta for Grid-Enclave
id: meta_grid_enclave
uses: docker/metadata-action@v3
with:
images: openmined/grid-enclave
tags: |
type=raw,value=${{ steps.grid-version.outputs.GRID_VERSION }}
type=raw,value=beta
# - name: Build and push `grid-frontend` image to DockerHub
# uses: docker/build-push-action@v4
# with:
# context: ./packages/grid/frontend
# file: ./packages/grid/frontend/frontend.dockerfile
# push: true
# platforms: linux/amd64,linux/arm64
# tags: ${{ steps.meta_grid_frontend.outputs.tags }}
# target: grid-ui-development
# cache-from: type=registry,ref= ${{ steps.meta_grid_frontend.outputs.tags }}
# cache-to: type=inline

# - name: Docker meta for Grid-Enclave
# id: meta_grid_enclave
# uses: docker/metadata-action@v3
# with:
# images: openmined/grid-enclave
# tags: |
# type=raw,value=${{ steps.grid-version.outputs.GRID_VERSION }}
# type=raw,value=beta

- name: Build and push `grid-enclave` image to DockerHub
uses: docker/build-push-action@v4
with:
context: ./packages
file: ./packages/grid/worker/worker.dockerfile
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.meta_grid_enclave.outputs.tags }}
target: worker
cache-from: type=registry,ref=${{ steps.meta_grid_enclave.outputs.tags }}
cache-to: type=inline
# - name: Build and push `grid-enclave` image to DockerHub
# uses: docker/build-push-action@v4
# with:
# context: ./packages
# file: ./packages/grid/worker/worker.dockerfile
# push: true
# platforms: linux/amd64,linux/arm64
# tags: ${{ steps.meta_grid_enclave.outputs.tags }}
# target: worker
# cache-from: type=registry,ref=${{ steps.meta_grid_enclave.outputs.tags }}
# cache-to: type=inline

- name: Login to Docker-Helm
run: |
Expand Down

0 comments on commit 274e811

Please sign in to comment.