小编bxd*_*oan的帖子

在 CircleCi 作业中恢复缓存时权限被拒绝

每当我的工作运行时,他们总是需要大约 40 秒的时间来下载和安装 libreoffice。我要将它存储到缓存中并恢复缓存以在下一个工作中重用它。

      - restore_cache:
          key: cache-libre-6.3-b             # Restore libreoffice
      - run:
          name: install libreoffice 6.3
          command: |
            if [[ ! -d /opt/libreoffice6.3/ ]]; then
                # download & install the .deb
                mkdir -p /tmp/libreoffice
                l=download.tar.gz
                cd /tmp/libreoffice
                  wget -O $l https://download.documentfoundation.org/libreoffice/stable/6.3.3/deb/x86_64/LibreOffice_6.3.3_Linux_x86-64_deb.tar.gz
                  tar -xvf $l
                  d=`ls -td */ | head -n1`
                  cd $d/DEBS/
                  sudo dpkg -i *.deb
                cd -

                # install dependencies required when run :soffice binary  ref. https://github.com/microsoft/vscode/issues/13089
                sudo apt update
                sudo apt install -y libxinerama1 libgtk2.0-0 libxss-dev libgconf-2-4 …
Run Code Online (Sandbox Code Playgroud)

linux bash caching circleci circleci-2.0

4
推荐指数
1
解决办法
1452
查看次数

标签 统计

bash ×1

caching ×1

circleci ×1

circleci-2.0 ×1

linux ×1