Skip to content

Commit

Permalink
- ensure image is passed into deploy command
Browse files Browse the repository at this point in the history
  • Loading branch information
nbarrett committed Sep 21, 2024
1 parent fe475e3 commit 9bce3e7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
run: |
echo "APP_NAME=${{ secrets.APP_NAME }}" >> $GITHUB_ENV
echo "DOCKER_USERNAME=${{ secrets.DOCKER_USERNAME }}" >> $GITHUB_ENV
echo "DOCKER_IMAGE=${{ secrets.DOCKER_USERNAME }}/ngx-ramblers:27" >> $GITHUB_ENV
echo "DOCKER_IMAGE=${{ secrets.DOCKER_USERNAME }}/ngx-ramblers:latest" >> $GITHUB_ENV
echo "ALLOWED_DOMAINS=${{ secrets.ALLOWED_DOMAINS }}" >> $GITHUB_ENV # Add this line
- name: Replace Docker image, app name, and allowed domains in fly.toml
Expand All @@ -79,9 +79,9 @@ jobs:
APP_NAME: ${{ secrets.APP_NAME }}
CHROMEDRIVER_VERSION: ${{ secrets.CHROMEDRIVER_VERSION }}
CHROME_VERSION: ${{ secrets.CHROME_VERSION }}
DOCKER_IMAGE: ${{ secrets.DOCKER_IMAGE }}
DOCKER_IMAGE: ${{ secrets.DOCKER_USERNAME }}/ngx-ramblers:latest
run: |
flyctl deploy --remote-only --image ${{ secrets.DOCKER_IMAGE }} --app ${{ secrets.APP_NAME }} \
flyctl deploy --remote-only --image $DOCKER_IMAGE --app $APP_NAME \
--build-arg CHROME_VERSION=${{ secrets.CHROME_VERSION }} \
--build-arg CHROMEDRIVER_VERSION=${{ secrets.CHROMEDRIVER_VERSION }}
Expand Down

0 comments on commit 9bce3e7

Please sign in to comment.