【问题标题】:AWS-S3 orb - Circle CI - Unexpected argument(s): argumentsAWS-S3 orb - Circle CI - 意外参数:参数
【发布时间】:2023-03-28 10:37:01
【问题描述】:

我在构建中遇到以下错误:

#!/bin/sh -eo pipefail
# Error calling workflow: 'build-deploy'
# Error calling job: 'build_test_es'
# Error calling command: 'aws-s3/sync'
# Unexpected argument(s): arguments
# 
# -------
# Warning: This configuration was auto-generated to show you the message above.
# Don't rerun this job. Rerunning will have no effect.
false
Exited with code 1

这就是我的 config.yml 文件的样子,我已经隐藏了一些部分。

version: 2.1
orbs:
  aws-s3: circleci/aws-s3@1.0.0
jobs:
  build_test_es:  
    docker:
      - image: circleci/node:10.15
    steps:
      - checkout
      - setup_remote_docker

      - run:
          name: NPM install
          command: |
            cd app 
            pwd
            npm install

      - run:
          name: NPM build
          command: |
            cd app 
            pwd
            npm run build

      - run: mkdir bucket && echo "lorum ipsum" > bucket/build_asset.txt
      - aws-s3/sync:
          from: bucket
          to: 's3://my-s3-bucket-name/prefix'
          arguments: |
            --acl public-read \
            --cache-control "max-age=86400"
          overwrite: true

如您所见,我使用的是文档中的默认命令: https://circleci.com/orbs/registry/orb/circleci/aws-s3#commands-sync

球体坏了吗?我遗漏了什么吗?

【问题讨论】:

    标签: amazon-s3 circleci circleci-2.0


    【解决方案1】:

    通过更新球体来修复它。浪费时间的好方法。

    version: 2.1
    orbs:
      aws-s3: circleci/aws-s3@1.0.3
    

    【讨论】:

      猜你喜欢
      • 2018-06-09
      • 1970-01-01
      • 1970-01-01
      • 2021-12-02
      • 1970-01-01
      • 2022-11-13
      • 2023-03-15
      • 2017-05-22
      • 2019-06-04
      相关资源
      最近更新 更多