Skip to content

Commit

Permalink
/deploy fargate
Browse files Browse the repository at this point in the history
  • Loading branch information
sliu008 committed Jan 7, 2025
1 parent b5f8126 commit c31e4f7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@ jobs:
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
git commit -am "/version ${{ env.the_version }}"
git commit -am "/version ${{ env.new_version }}"
git push
- name: Push Tag
env:
VERSION: ${{ env.the_version }}
VERSION: ${{ env.new_version }}
if: |
github.ref == 'refs/heads/develop' ||
github.ref == 'refs/heads/main' ||
Expand All @@ -126,7 +126,7 @@ jobs:
ls -al
cd terraform
ls -al
zip -r ../forge-py-terraform-${{ env.the_version }}.zip *
zip -r ../forge-py-terraform-${{ env.new_version }}.zip *
- name: Create and Upload Release
if: |
Expand All @@ -141,6 +141,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
makeLatest: ${{ github.ref == 'refs/heads/main' }}
prerelease: ${{ github.ref != 'refs/heads/main' }}
body: "Version ${{ env.new_version }}"

publish:
name: Build & Publish Docker
Expand Down Expand Up @@ -242,7 +243,7 @@ jobs:
id: set-source
run: |
# Default build source for standard branches
echo "SOURCE=${{ env.pyproject_name }}==${{ env.the_version }}" >> $GITHUB_ENV
echo "SOURCE=${{ env.pyproject_name }}==${{ env.new_version }}" >> $GITHUB_ENV
# Override source if deploying (find .whl file in dist/)
if [[ "${{ contains(github.event.head_commit.message, '/deploy sit') ||
Expand Down

0 comments on commit c31e4f7

Please sign in to comment.