0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

vue-cli-3で作成したアプリを、bitbucket pipelinesでS3にデプロイする方法

Last updated at Posted at 2020-03-05

参考

bitbucket-pipelines.yml

image: node:10.15.3

pipelines:
  branches:
    master:
      - step:
          name: Build
          caches:
            - node
          script: # Modify the commands below to build your repository.
            - yarn
            - yarn run build --mode staging
          artifacts:
            -dist/**
      - step:
          name: Deploy to S3
          deployment: staging
          script:
            - pipe: atlassian/aws-s3-deploy:0.4.1
              variables:
                AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
                AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
                AWS_DEFAULT_REGION: "us-west-1"
                S3_BUCKET: "YOUR_BUCKET_NAME"
                LOCAL_PATH: "dist"
                ACL: "public-read"

  • この例ではステージング環境にデプロイします。
  • masterブランチにマージした時のみパイプラインを実行します。
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?