Skip to content

Commit

Permalink
do an funky trick to remove the BUILDPLATFORM var since this not supp…
Browse files Browse the repository at this point in the history
…orted in heroku
  • Loading branch information
qdraw authored Nov 4, 2021
1 parent 7c2874e commit dc97b32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/starsky-docker-deploy-demo-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1

- name: Build and deploy the Docker image
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
APP_NAME: ${{ 'demostarsky' }}
run: |
cd ./starsky
# do an funky trick to remove the BUILDPLATFORM var since this not supported in heroku
sed -i -e 's/--platform=$BUILDPLATFORM //g' Dockerfile
docker login --username=_ --password=$HEROKU_API_KEY registry.heroku.com
heroku container:push web -a $APP_NAME --arg ISDEMO=true,BUILDPLATFORM=linux/amd64
heroku container:release web -a $APP_NAME
Expand Down

0 comments on commit dc97b32

Please sign in to comment.