Skip to content

Commit

Permalink
Fix issue with uppercase Docker image name
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Nov 1, 2023
1 parent 5c377dc commit 17ab4f8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,16 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set repository name to lowercase
run: echo "IMAGE_NAME_LOWER=$(echo ${{ env.IMAGE_NAME}} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV

- name: Build and push Docker image
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.event.inputs.colabfold_version }}-cuda${{ matrix.cuda_version }}
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME_LOWER }}:${{ github.event.inputs.colabfold_version }}-cuda${{ matrix.cuda_version }}
platforms: linux/amd64 # ,linux/arm64
cache-from: type=gha
cache-to: type=gha,mode=max
Expand Down

0 comments on commit 17ab4f8

Please sign in to comment.