Bump rexml from 3.3.1 to 3.3.3 (#514) #283
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: CD | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Configure SSH | |
uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_KEY }} | |
known_hosts: ${{ vars.KNOWN_HOSTS }} | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
bundler-cache: true | |
- name: Setup Docker | |
uses: docker/setup-buildx-action@v3 | |
- uses: crazy-max/ghaction-github-runtime@v3 | |
- name: Get credentials from Heroku | |
env: | |
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }} | |
run: | | |
curl https://cli-assets.heroku.com/install-ubuntu.sh | sudo sh | |
DATABASE_URL=$(heroku config:get DATABASE_URL -a hackathons) | |
REDIS_URL=$(heroku config:get REDIS_URL -a hackathons) | |
echo "DATABASE_URL=${DATABASE_URL}" >> $GITHUB_ENV | |
echo "REDIS_URL=${REDIS_URL}" >> $GITHUB_ENV | |
- name: Deploy to production! | |
run: bundle exec kamal envify && bundle exec kamal deploy | |
env: | |
KAMAL_REGISTRY_USERNAME: ${{ github.actor }} | |
KAMAL_REGISTRY_PASSWORD: ${{ github.token }} | |
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }} |