我需要从dockerhub部署一个Node.js docker镜像到Elastic Beanstalk。我正在构建映像,然后将其推送到hub.docker.com,现在我想使用bitbucket-pipeline将映像从hub.docker.com部署到AWS Elastic Beanstalk。管道没有构建映像并将其推送到hub.docker.com,我现在想使用管道来部署映像。
只需将以下内容用作bitbucket-pipeline.yml的顶行:
image: node # or whatever is the image name you built on docker hub
在脚本部分,然后您需要运行docker-compose命令来构建并推送映像。