Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinemodic committed Aug 2, 2023
1 parent 6bf4633 commit fecb45b
Show file tree
Hide file tree
Showing 4 changed files with 544 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/docker_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# name of the workflow
name: Rust

# run workflow when the condition is met
on:
# run when code is pushed on the `main` branch
push:
branches: [ "main", "heroku_integration" ]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build Docker image
run: docker build -t registry.heroku.com/${{ secrets.HEROKU_APP }}/web:latest .

- name: Docker image info
run: docker images

- name: Login to container registry
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:login

- name: Push Docker image
run: docker push registry.heroku.com/${{ secrets.HEROKU_APP }}/web

- name: Release
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:release -a ${{ secrets.HEROKU_APP }} web
Loading

0 comments on commit fecb45b

Please sign in to comment.