chore(deps): update all dependencies (#131) #103
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy application | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '**.md' | |
- '**.*ignore' | |
- '**.env*' | |
- renovate.json | |
- docker-compose.yaml | |
- '**integration.yaml' | |
concurrency: | |
group: deployment-${{ github.ref }} | |
cancel-in-progress: false | |
jobs: | |
deployment: | |
name: Perform deployment | |
runs-on: ubuntu-22.04 | |
permissions: read-all | |
environment: | |
name: production | |
url: http://discord.gg/7Guzz9e | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Heroku | |
uses: akhileshns/heroku-deploy@v3.13.15 | |
with: | |
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | |
heroku_app_name: '' | |
heroku_email: ${{secrets.HEROKU_EMAIL}} | |
justlogin: true | |
- name: Login to Heroku Container Registry | |
run: heroku container:login | |
- name: Build Docker image | |
uses: docker/build-push-action@v5 | |
with: | |
push: true | |
provenance: false | |
tags: registry.heroku.com/codinglab-discord-bot/worker | |
cache-from: type=gha | |
cache-to: type=gha,mode=max | |
- name: Deploy Docker image | |
run: heroku container:release worker --app codinglab-discord-bot |