4.13 added flyio cd to project

This commit is contained in:
Aaro Koivukangas
2023-11-11 20:00:36 +02:00
parent c91c9d6ad7
commit b657386482
10 changed files with 195 additions and 12 deletions
+7 -2
View File
@@ -4,7 +4,7 @@
#
# This workflow will install a prebuilt Ruby version, install dependencies, and
# run tests and linters.
name: "Ruby on Rails CI"
name: "Ruby on Rails CI/CD"
on:
push:
branches: [ "main" ] # Jos repositoriosi päähaara ei ole main, muuta nämä
@@ -25,10 +25,11 @@ jobs:
env:
RAILS_ENV: test
DATABASE_URL: "postgres://rails:password@localhost:5432/rails_test"
steps:
- name: Checkout code
uses: actions/checkout@v3
# Add or replace dependency steps here
- name: Install Ruby and gems
uses: ruby/setup-ruby@v1
with:
@@ -38,3 +39,7 @@ jobs:
- name: Run RuboCop
run: bundle exec rubocop --parallel
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}