Coder Social home page Coder Social logo

If i want to deploy using docker with this action what should i make changes in here,Is this action will support docker? about beanstalk-deploy HOT 4 CLOSED

einaregilsson avatar einaregilsson commented on June 13, 2024
If i want to deploy using docker with this action what should i make changes in here,Is this action will support docker?

from beanstalk-deploy.

Comments (4)

 avatar commented on June 13, 2024

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.

adityaSharma369 avatar adityaSharma369 commented on June 13, 2024

@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.

JackMcKew avatar JackMcKew commented on June 13, 2024

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:

firefox_4yw8Aunwaf

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.

 avatar commented on June 13, 2024

@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)

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.