Comments (4)
This action just deploys a zip file that EB accepts. If you put a dockerfile in there in the right way it should work, but we don't do anything special to support that. In your file above you're doing your docker build after creating your deployment package. Isn't it enough to just put a Dockerfile in your zip?
from beanstalk-deploy.
@einaregilsson ,yes DockerFile is enough but i thought that we need to build docker file then i have to zip it.but later i came to know that dockerfile is enough and thank you for ur info
from beanstalk-deploy.
Hi @adityaSharma369,
I'm currently trying to solve the same problem. Curious to know what the workflow you got working in the end was? From my understanding, I have zipped the Dockerfile intended for upload onto ElasticBeanstalk but it seems to fail on the deploy step:
My current workflow is:
name: Test & Deploy
on: push
jobs:
test-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Latest Repo
uses: actions/checkout@master
- name: Build Dev Docker Image
run: docker build -t jackmckew/docker-react-dev -f Dockerfile.dev .
- name: Run Test Suite
run: docker run -e CI=true jackmckew/docker-react-dev npm run test -- --coverage
# Zip Dockerfile for upload
- name: Generate deployment package
run: zip -r deploy.zip Dockerfile
- name: Get timestamp
uses: gerred/actions/current-time@master
id: current-time
- name: Run string replace
uses: frabert/replace-string-action@master
id: format-time
with:
pattern: '[:\.]+'
string: "${{ steps.current-time.outputs.time }}"
replace-with: "-"
flags: "g"
# Deploy to AWS
- name: Deploy to AWS ElasticBeanstalk
if: success()
uses: einaregilsson/beanstalk-deploy@v10
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: docker-react
environment_name: DockerReact-env
region: us-east-2
version_label: "docker-react-${{ steps.format-time.outputs.replaced }}"
deployment_package: deploy.zip
from beanstalk-deploy.
@JackMcKew There was a new error because GitHub stopped setting an environment variable we depended on. I've updated the action, try again with v11.
from beanstalk-deploy.
Related Issues (20)
- Error: Deployment failed: Error: Status: 400. Code: Throttling, Message: Rate exceeded
- using the CLI tool in github actions
- Deployment breaks when run during an already ongoing deployment HOT 1
- Deploy Elastic Beanstack using Assume role
- Deployment failed: Error: Status: 301. HOT 1
- Use node 20 runner HOT 2
- Call for maintainers HOT 7
- EB Environment Variables from Github Secrets HOT 5
- Fails if `existing_bucket_name` is DNS-style.
- Django Migrations HOT 1
- Error: Deployment failed: Error: Deployment failed! Current State: Version: Sample Application, Health: Green, Health Status: Info
- How to set option_settings? HOT 2
- Failure undetected, resulting in 6 hour timeout HOT 3
- support working-directory
- docker deploy HOT 1
- Windows support? HOT 1
- Upd runtime to node16 HOT 2
- Is this action still supported? HOT 5
- dynamic version_label is not working HOT 1
- Deployment fails HOT 1
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 beanstalk-deploy.