Giter VIP home page Giter VIP logo

semantic-release-ecs-deploy's Introduction

@eclass/semantic-release-ecs-deploy

npm Node.js CI downloads dependencies devDependency Status Coverage Status Maintainability semantic-release

semantic-release plugin to deploy ecs services

Step Description
verifyConditions Verify the presence of the AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY environment variable.
publish Upgrade service in aws ecs.

Install

npm i -D @eclass/semantic-release-ecs-deploy

Usage

The plugin can be configured in the semantic-release configuration file:

{
  "plugins": [
    "@semantic-release/changelog",
    "@semantic-release/npm",
    "@semantic-release/git",
    "@semantic-release/gitlab",
    [
      "@eclass/semantic-release-ecs-deploy",
      {
        "services": [
          {
            "cluster": "mycluster",
            "service": "myservice"
          }
        ]
      }
    ]
  ]
}

Configuration

Environment variables

Variable Description
AWS_ACCESS_KEY_ID aws access key id
AWS_SECRET_ACCESS_KEY aws secret access key

Options

Variable Description
services Array of object service. Required.
service.cluster Name of cluster in aws ecs. Required.
service.service Name of service in aws ecs. Required.
service.timeout Timeout in seconds to wait upgrade. Optional. Default 300
service.ignoreWarnings Flag to ignore warnings in upgrade. Optional. Default false

Examples

{
  "plugins": [
    "@semantic-release/changelog",
    "@semantic-release/npm",
    "@semantic-release/git",
    "@semantic-release/gitlab",
    [
      "@eclass/semantic-release-ecs-deploy",
      {
        "services": [
          {
            "cluster": "mycluster",
            "service": "myservice",
            "timeout": -1,
            "ignoreWarnings": true
          }
        ]
      }
    ]
  ]
}
# .gitlab-ci.yml
release:
  image: node:alpine
  stage: release
  script:
    - npx semantic-release
  only:
    - master
# .travis.yml
language: node_js
cache:
  directories:
    - ~/.npm
node_js:
  - "12"
stages:
  - test
  - name: deploy
    if: branch = master
jobs:
  include:
    - stage: test
      script: npm t
    - stage: deploy
      script: npx semantic-release

License

MIT

semantic-release-ecs-deploy's People

Contributors

dependabot[bot] avatar lgaticaq avatar renovate-bot avatar semantic-release-bot avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

semantic-release-ecs-deploy's Issues

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you could benefit from your bug fixes and new features.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can resolve this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here is some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


Cannot push to the Git repository.

semantic-release cannot push the version tag to the branch master on the remote Git repository with URL https://github.com/eclass/semantic-release-ecs-deploy.git.

This can be caused by:


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Using npm packages for Renovate presets is now deprecated. Please migrate to repository-based presets instead.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm eslint-plugin-node Available
npm eslint-plugin-standard Unavailable

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): replace dependency eslint-plugin-node with eslint-plugin-n 14.0.0
  • chore(deps): update dependency @types/node to v13.13.52
  • chore(deps): update dependency @types/semantic-release to v17.2.11
  • chore(deps): update dependency eslint-plugin-array-func to v3.1.8
  • chore(deps): update dependency eslint to v7.32.0
  • chore(deps): update dependency eslint-plugin-security to v1.7.1
  • chore(deps): update actions/cache action to v4
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-node action to v4
  • chore(deps): update dependency @eclass/eslint-config to v4
  • chore(deps): update dependency @eclass/semantic-release-npm-github-config to v4
  • chore(deps): update dependency @types/mocha to v10
  • chore(deps): update dependency @types/semantic-release to v20
  • chore(deps): update dependency chai to v5
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency eslint-plugin-array-func to v5
  • chore(deps): update dependency eslint-plugin-jsdoc to v48
  • chore(deps): update dependency eslint-plugin-promise to v6
  • chore(deps): update dependency eslint-plugin-security to v3
  • chore(deps): update dependency eslint-plugin-sonarjs to v1
  • chore(deps): update dependency eslint-plugin-standard to v5
  • chore(deps): update dependency husky to v9
  • chore(deps): update dependency lint-staged to v15
  • chore(deps): update dependency node to v20 (node, @types/node)
  • chore(deps): update dependency typescript to v5
  • chore(deps): update semantic-release monorepo (major) (@semantic-release/changelog, @semantic-release/error, @semantic-release/git)
  • πŸ” Create all rate-limited PRs at once πŸ”

Edited/Blocked

These updates have been manually edited so Renovate will no longer make changes. To discard all commits and start over, click on a checkbox.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

github-actions
.github/workflows/nodejs.yml
  • actions/checkout v2
  • actions/setup-node v2
  • actions/cache v2
  • actions/checkout v2
  • actions/setup-node v2
  • actions/cache v2
npm
package.json
  • @semantic-release/error ^2.1.0
  • aws-sdk 2.847.0
  • awscred 1.5.0
  • @commitlint/cli 11.0.0
  • @commitlint/config-conventional 11.0.0
  • @eclass/eslint-config 2.0.0
  • @eclass/semantic-release-npm-github-config 3.0.1
  • @semantic-release/changelog 5.0.1
  • @semantic-release/git 9.0.0
  • @types/chai 4.2.15
  • @types/mocha 8.2.0
  • @types/node 13.13.45
  • @types/semantic-release 17.2.0
  • chai 4.3.0
  • eslint 7.20.0
  • eslint-plugin-array-func 3.1.7
  • eslint-plugin-eslint-comments 3.2.0
  • eslint-plugin-import 2.22.1
  • eslint-plugin-jsdoc 32.0.2
  • eslint-plugin-node 11.1.0
  • eslint-plugin-promise 4.3.1
  • eslint-plugin-security 1.4.0
  • eslint-plugin-sonarjs 0.6.0
  • eslint-plugin-standard 4.1.0
  • husky 4.3.8
  • lint-staged 10.5.4
  • prettier-standard 16.4.1
  • semantic-release 17.3.8
  • typescript 4.1.5
  • semantic-release >=11.0.0 <18.0.0
  • node >=12
nvm
.nvmrc
  • node 12.20.2

  • Check this box to trigger a request for Renovate to run again on this repository

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.