Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

EXDEV: cross-device link not permitted #194

Closed
prise6 opened this issue May 20, 2020 · 6 comments
Closed

EXDEV: cross-device link not permitted #194

prise6 opened this issue May 20, 2020 · 6 comments
Labels

Comments

@prise6
Copy link

prise6 commented May 20, 2020

Behaviour

Github action raises this error while downloading buildx:

The process '/usr/bin/docker' failed with exit code 1
EXDEV: cross-device link not permitted, rename '/home/runner/work/_temp/532e6f7e-b2c0-40e6-8d63-762f9b51fed2' -> '/home/runner/.docker/cli-plugins/docker-buildx'

Steps to reproduce this issue

See https://github.com/prise6/medias-trends/runs/693432032

Configuration

name: Docker image

on:
  release:
    types: [published]
  push:
    branches:
      - dev-docker

env:
  IMAGE_NAME: prise6/mediastrends

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python 3.7
        uses: actions/setup-python@v2
        with:
          python-version: 3.7
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install setuptools wheel
      - name: Build python package
        run: |
          python setup.py sdist bdist_wheel
      - name: Upload python wheel 
        uses: actions/upload-artifact@v2
        with:
          name: mediastrends_wheel
          path: dist/*.whl

  docker-deploy:
    runs-on: ubuntu-latest
    needs: build
    steps:
      - uses: actions/checkout@v2
      - name: Create dist directory
        run: |
          mkdir dist
      - name: Download python wheel package
        uses: actions/download-artifact@v2
        with:
          name: mediastrends_wheel
          path: dist
      - name: Build docker image
        if: github.event_name == 'release'
        uses: docker/build-push-action@v1
        with:
          username: ${{ github.actor }}
          password: ${{ secrets.GITHUB_TOKEN }}
          registry: docker.pkg.github.com
          repository: prise6/medias-trends/mediastrends-core
          tag_with_ref: True
      - name: Set up Docker Buildx
        uses: crazy-max/ghaction-docker-buildx@v1
        with:
          version: latest
      - name: Login dockerhub
        run: |
          echo "${{ secrets.DOCKER_PASSWORD }}" | docker login --username "${{ secrets.DOCKER_USERNAME }}" --password-stdin
      - name: Build docker image with buildx
        run: |

          # Strip git ref prefix from version
          VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
          # Strip "v" prefix from tag name
          [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
          # Use Docker `latest` tag convention
          [ "$VERSION" == "master" ] && VERSION=latest

          echo $IMAGE_NAME:$VERSION

          docker buildx build \
            --platform linux/amd64,linux/arm/v7 \
            --push \
            --tag $IMAGE_NAME:$VERSION \
            --file Dockerfile .
      - name: Clear
        run: |
          rm -f ${HOME}/.docker/config.json

Logs

logs_99.zip

@crazy-max
Copy link
Owner

crazy-max commented May 20, 2020

Hi @prise6, I have push some changes. Can you try with:
uses: crazy-max/ghaction-docker-buildx@master?

@hroapye
Copy link

hroapye commented May 20, 2020

Same.
I found, since virtual environment new version : ubuntu-18.04 20200518.1
/home/runner/work is another partition /dev/sdb1, so renameSync returns the error.

@crazy-max
Copy link
Owner

@hroapye Can you try with uses: crazy-max/ghaction-docker-buildx@master?

@prise6
Copy link
Author

prise6 commented May 20, 2020

using crazy-max/ghaction-docker-buildx@master seems to fix the issue (my job is currently running without error)

Thanks !

@crazy-max
Copy link
Owner

@prise6 @hroapye I have created a new release. You can use crazy-max/ghaction-docker-buildx@v1

@hroapye
Copy link

hroapye commented May 20, 2020

@crazy-max
It's ok now, thank you for your work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants