Skip to content

Commit

Permalink
Support fly deploy --build-arg
Browse files Browse the repository at this point in the history
  • Loading branch information
dentarg committed Mar 3, 2024
1 parent ded24a4 commit 100d582
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
steps:
- uses: dentarg/fly@v1
with:
build-args: "RUBY_VERSION=3.2.3"
fly-token: ${{ secrets.FLY_API_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
```
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ branding:
icon: "umbrella"
color: "blue"
inputs:
build-args:
description: "Build time variables in the form of NAME=VALUE pairs"
default: ""
required: false
fly-token:
description: "Fly API token"
required: true
Expand Down Expand Up @@ -55,6 +59,7 @@ runs:
run: |
flyctl deploy --remote-only \
--ha=false \
--build-arg "${{ inputs.build-args }}" \
--env RELEASE_COMMIT=$(git rev-parse --verify HEAD) \
--env RELEASE_CREATED_AT=$(date --iso-8601=seconds) \
--env RELEASE_VERSION="v$(( $FLY_RELEASE_VERSION + 1 ))"
Expand Down

0 comments on commit 100d582

Please sign in to comment.