feat(action): build and push to registry #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# name: Deploy master | |
# on: | |
# push: | |
# branches: | |
# - master | |
# jobs: | |
# build: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout source code | |
# uses: actions/checkout@v2 | |
# - name: Generate deployment package | |
# run: zip -r deploy.zip . -x '*.git*' | |
# - 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' | |
# - name: Deploy to EB | |
# uses: einaregilsson/beanstalk-deploy@v21 | |
# with: | |
# aws_access_key: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
# aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
# application_name: sample-react-app | |
# environment_name: Sample-react-app-env-1 | |
# version_label: "sample-react-app-${{ steps.format-time.outputs.replaced }}" | |
# region: eu-west-1 | |
# deployment_package: deploy.zip |