ersilia-os / eos6ao8

Explainable AI for plasma protein binding prediction
GNU General Public License v3.0
1 stars 0 forks source link

Changes in github/workflows/dockerfile.yml for ARM64 and AMD64 #6

Closed ZakiaYahya closed 1 year ago

ZakiaYahya commented 1 year ago

Hello @GemmaTuron, These are the changes we done in Dockerfile.yml in github/workflows. Let me know if this solution is working or not.

Changes are done in this piece of original code

 `- name: Build and push
        uses: docker/build-push-action@v2
        with:
          context: .
          platforms: linux/amd64,linux/arm64
          push: ${{ github.event_name != 'pull_request' }}
          tags: ersiliaos/${{ github.event.repository.name }}:latest

      - name: Docker Hub Description
        uses: peter-evans/dockerhub-description@v3
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_PASSWORD }}
          repository: ersiliaos/${{ github.event.repository.name }}
          short-description: "Ersilia Model Hub Identifier: ${{ github.event.repository.name }}"
`

to

`      - name: Build and push (amd64)
        id: build-amd64
        uses: docker/build-push-action@v2
        with:
          context: .
          platforms: linux/amd64
          push: ${{ github.event_name != 'pull_request' }}
          tags: ersiliaos/${{ github.event.repository.name }}:latest

      - name: Check AMD64 Build
        if: always()
        run: echo "AMD64 build status:" "${{ steps.build-amd64.outcome }}"

​
      - name: Build and push (arm64)
        id: build-arm64
        if: always()
        uses: docker/build-push-action@v2
        with:
          context: .
          platforms: linux/arm64
          push: ${{ github.event_name != 'pull_request' }}
          tags: ersiliaos/${{ github.event.repository.name }}:latest
​
      - name: Check ARM64 Build
        if: always()
        run: echo "ARM64 build status:" "${{ steps.build-arm64.outcome }}"

      - name: Docker Hub Description
        uses: peter-evans/dockerhub-description@v3
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_PASSWORD }}
          repository: ersiliaos/${{ github.event.repository.name }}
          short-description: "Ersilia Model Hub Identifier: ${{ github.event.repository.name }}"`