diff --git a/.github/workflows/build-push-and-deploy-ngx-ramblers-docker-image-via-heroku.yml b/.github/workflows/build-push-and-deploy-ngx-ramblers-docker-image-via-heroku.yml index 8d7e54b..e44ce6f 100644 --- a/.github/workflows/build-push-and-deploy-ngx-ramblers-docker-image-via-heroku.yml +++ b/.github/workflows/build-push-and-deploy-ngx-ramblers-docker-image-via-heroku.yml @@ -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 @@ -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 }}