Open onlinejudge95 opened 3 years ago
Got the same error I don't know what to do with this
Unable to push branch because the branch is behind the deployed branch. Using --force to deploy branch. (If you want to avoid this, set dontuseforce to 1 in with: of .github/workflows/action.yml. Specifically, the error was: Error: Command failed: heroku container:push web --app zoohotel1
@nekromant322 meanwhile as a workaround i am using the following comment as inspiration https://github.com/AkhileshNS/heroku-deploy/issues/35#issuecomment-718067543
Here is my new action file
name: "CD"
on:
push:
branches: ["release"]
jobs:
deploy:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v2
- name: "Deploy the web dyno"
uses: "akhileshns/heroku-deploy@v3.12.12"
with:
docker_heroku_process_type: web
heroku_api_key: ${{ secrets.HEROKU_API_KEY }}
heroku_app_name: email-service-web
heroku_email: ${{ secrets.HEROKU_EMAIL }}
justlogin: true
- name: "Login to heroku registry"
run: heroku container:login
- name: "Build and push to heroku registry"
run: heroku container:push web --app email-service-web
- name: "Releases the container"
run: heroku container:release web --app email-service-web
That being said it is just a workaround and I would expect the developer to solve this issue or at least be responsive
@AkhileshNS any update on this?
Run akhileshns/heroku-deploy@v3.12.12 Created and wrote to ~/.netrc › Warning: Our terms of service have changed: Successfully logged into heroku › https://dashboard.heroku.com/terms-of-service WARNING! Your password will be stored unencrypted in /home/runner/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Added git remote heroku Setting CONFIG_FILE_URL and restarting ... done, v5 received unexpected HTTP status: 500 Internal Server Error ▸ Error: docker push exited with Error: 1 Unable to push branch because the branch is behind the deployed branch. Using --force to deploy branch. (If you want to avoid this, set dontuseforce to 1 in with: of .github/workflows/action.yml. Specifically, the error was: Error: Command failed: heroku container:push web --app received unexpected HTTP status: 500 Internal Server Error ▸ Error: docker push exited with Error: 1 received unexpected HTTP status: 500 Internal Server Error ▸ Error: docker push exited with Error: 1 Error: Error: Command failed: heroku container:push web --app *** received unexpected HTTP status: 500 Internal Server Error ▸ Error: docker push exited with Error: 1
The deployment fails via GitHub action with the following traceback
Whereas the deployment via
heroku container:push web --app email-service-web && heroku container:release web --app email-service-web
works as expected. Note that the error form actions persist even if I create a new app with no previous deployments. Also the secrets are set correctly.