Comments (7)
awesome ! will merge this to master π thank you !! @jams2
from circleci-orbs.
looks like there's some kind of yaml parsing issue where a newline is being inserted where it shouldn't be.... i wonder if we can just make arguments
the last portion of the command & that would take care of it...
from circleci-orbs.
You're right (source)
aws s3 sync \
<<parameters.from>> <<parameters.to>> \
<<#parameters.arguments>><<parameters.arguments>><</parameters.arguments>><<#parameters.overwrite>> \
--delete<</parameters.overwrite>>
A newline is being inserted after <<parameters.arguments>>
, and it looks like the cause of that, taking my config above:
arguments: |
--acl public-read \
--cache-control "max-age=86400"
is the expansion including the unescaped newline after --cache-control
. Moving arguments
to the end is probably the simplest solution. I can test and throw a PR together some time this week if you like.
from circleci-orbs.
it's such a small change, i can take care of it right now @jams2
i'll merge this change to staging, which will publish a dev version w/ the change, & then, since we're not currently doing any extensive integration or usage testing for orbs in this repo (hard to do in the monorepoβour single-repo orbs are tested much more extensively), can you give your job a shot again with the new dev version ?
from circleci-orbs.
ok, please give this a shot with circleci/aws-s3@dev:staging-71c6a65
@jams2
if that fixes your issue, i'll merge into master, which will trigger the release of a new semantic / production orb version
from circleci-orbs.
That fixes it.
Using config:
version: 2.1
orbs:
aws-s3: circleci/aws-s3@dev:staging-71c6a65
jobs:
deploy-staging:
docker:
- image: circleci/python:2.7
working_directory: ~/repo
steps:
- run: mkdir syncdir && echo "test" >> syncdir/test.txt
- aws-s3/sync:
from: syncdir
to: 's3://thebloggerprogramme-staging/test2'
arguments: |
--acl public-read \
--cache-control "max-age=86400"
overwrite: true
workflows:
version: 2.1
test_build:
jobs:
- deploy-staging
command is expanded as:
- deploy:
name: Deploy to S3
command: |+
aws s3 sync \
syncdir s3://thebloggerprogramme-staging/test2 --delete \
--acl public-read \
--cache-control "max-age=86400"
and still fine without the overwrite parameter:
- deploy:
name: Deploy to S3
command: |+
aws s3 sync \
syncdir s3://thebloggerprogramme-staging/test2 \
--acl public-read \
--cache-control "max-age=86400"
Job is here
Thanks!
from circleci-orbs.
fixed in circleci/[email protected]
π
from circleci-orbs.
Related Issues (20)
- aws-code-deploy fails to check the existence of deployment group with extra arguments passed HOT 1
- Break circleci/aws-s3 orb into its own repository HOT 4
- Break circleci/codecov-clojure orb into its own repository HOT 4
- Break circleci/codecov orb into its own repository HOT 4
- Break circleci/gradle orb into its own repository HOT 3
- Break circleci/heroku orb into its own repository HOT 3
- Break circleci/lein-nvd orb into its own repository HOT 4
- Break circleci/maven orb into its own repository HOT 3
- Break circleci/rollbar orb into its own repository HOT 5
- Break circleci/aws-code-deploy orb into its own repository HOT 4
- circleci/aws-code-deploy isn't on readme HOT 2
- AWS Code Deploy orb missing descriptions for commands HOT 3
- codecov-clojure orb missing description for job HOT 2
- circleci/codecov-clojure and circleci/codecov aren't in the registry HOT 1
- Filesystem doesn't support posix ACLs HOT 1
- `--dry-run` spelling HOT 2
- howto: s3 orb override endpoint HOT 1
- Broken [email protected] (Succeeded deploy fails) HOT 5
- Heroku Orb environment spin up error HOT 1
- AWS-S3 orb not working, "aws: command not found" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from circleci-orbs.