Skip to content

Commit

Permalink
Use package name backend-<SHORT_GIT_HASH>
Browse files Browse the repository at this point in the history
  • Loading branch information
gzurowski committed May 23, 2024
1 parent 27f5f8f commit 08fdb5b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,13 @@ jobs:
uses: actions/checkout@v4
with:
repository: "researchhub/researchhub-internal-utils"
ref: main
ref: feature/beanstalk-cicd
path: researchhub-internal-utils
token: ${{ secrets.PAT }}

- name: Set package name
run: echo "PACKAGE_NAME=backend-$(echo $GITHUB_SHA | cut -c1-8)" >> "$GITHUB_ENV"

- name: Copy Beanstalk configuration files
run: |
cp -r researchhub-internal-utils/deploy/backend/config/.ebextensions \
Expand All @@ -33,13 +36,13 @@ jobs:
run: |
mkdir -p target
cd src
zip -r ../target/deploy.zip .
zip -r ../target/${PACKAGE_NAME}.zip .
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: deploy
path: target/deploy.zip
path: target/${{ env.PACKAGE_NAME }}.zip

- name: Configure AWS credentials with assume role
id: aws_credentials
Expand All @@ -64,5 +67,5 @@ jobs:
version_label: ${{ github.sha }}
use_existing_version_if_available: true
region: us-east-1
deployment_package: target/deploy.zip
deployment_package: target/${{ env.PACKAGE_NAME }}.zip
wait_for_environment_recovery: 120

0 comments on commit 08fdb5b

Please sign in to comment.