I’m trying to deploy my app and generate the .war file in my bucket on AWS S3.
I tried using this:
deploy:
docker:
- image: circleci/node:6.14.1-browsers
working_directory: ~/${project_name}
steps:
- attach_workspace:
at: ~/${project_name}
- run:
name: Deploy
command: 'aws s3 sync ${build_folder}/ s3://${bucket}'
// Tried using this:
deployment:
prod:
branch: master
commands:
- aws s3 sync jekyll/_site/docs s3://circle-production-static-site/docs/ --delete
but also didn't work:
I have my permissions set for my project and my last config.yml configuration is this:
---
jobs:
build:
docker:
-
image: "circleci/openjdk:8-jdk"
environment:
JVM_OPTS: "-Xmx3200m"
TERM: dumb
steps:
- checkout
-
restore_cache:
keys:
- "v1-dependencies-{{ checksum \"build.gradle\" }}"
- v1-dependencies-
-
run: "gradle dependencies"
-
save_cache:
key: "v1-dependencies-{{ checksum \"build.gradle\" }}"
paths:
- ~/.gradle
-
run: "gradle test"
working_directory: ~/circle-tmp-folder
deploy:
machine:
enabled: true
steps:
-
run:
command: "aws s3 sync ${wstest}/ s3://${circleciwar} --region us-west-2"
name: Deploy
working_directory: ~/circle-tmp-folder
version: 2
It shows me any error, and the operation is showing me successfully, but no .war file on my bucket.
What am I doing wrong?
Cheers