Skip to content

Commit

Permalink
Migrate from Heroku to Scaleway
Browse files Browse the repository at this point in the history
  • Loading branch information
ssaunier committed May 7, 2024
1 parent d3f72ab commit be2a94d
Show file tree
Hide file tree
Showing 19 changed files with 246 additions and 182 deletions.
Empty file added .buildpacks
Empty file.
33 changes: 33 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Deploy
on:
workflow_dispatch:
push:
branches:
- master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Push to Scaleway (Dokku)
uses: dokku/github-action@master
with:
command: deploy
git_remote_url: "ssh://[email protected]/wikinimous"
git_push_flags: "--force -vvv"

# NOTE(ssaunier): having `id_ed25519` `id_ed25519.pub` localy:
# cat ~/code/lewagon/glovebox/id_ed25519.pub | ssh [email protected] dokku ssh-keys:add "ssaunier_github@dokku"
# ssh students ssh-keys:list
# cat ~/code/lewagon/glovebox/id_ed25519 | pbcopy # To be added to https://github.com/lewagon/wikinimous/settings/secrets/actions
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}

# cat ~/.ssh/known_hosts | grep "students.lewagon.engineering ssh-rsa"
ssh_host_key: |
students.lewagon.engineering ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCp7UWRGPtC4QermDmb4BZq2zdin7YQMqvwv//nLiu955amaBWvxP4MFXTr4Ig20PFSRVe8nwcnLgiHLhi1Jakr08jHGrcF3TykIGdFTNpqP5trmBNA711BOQVtrC0h4EQvuavjO8pVe0IhU0cCVHsRtIWKiHT+RwTdwuMrFxeA8ecu9DnWvG4KHkPL8fXVvUg59AN3CUKd6cGd5Vwfhxh1CTgxnZGmEpFlnRyqCX2yHojtsJCItGjDgvkme468GiaCMCQQuURrl5Q+EX2uo6csDKjYPu7Wnznp0pGuCfDkFRMe1xaSgqkspulRimwp2I7Vr0xHylhUgmQ+c2RlLovQcOJLOsqobkHChqBfUxS4S6/h3yttoORFIp+fsvpsmfuzIRojz/MxzVTE1evfR4NtpflNuAQeTk28+oB4SpqyIXgwX9eFMpcyCbd3UlNd0mO3yKqiUBs3M0pZPKcwTaZi9xOCDoGXGO1cNu+JWipTXydMespblDIFUJVJ+jEbt+8=
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,5 @@
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp

.DS_Store
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.2
3.3.1
14 changes: 3 additions & 11 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'
ruby '3.1.2'
ruby '3.3.1'

gem 'rails', "~> 6.1"
gem 'rails', "~> 7.1"
gem 'pg'
gem 'puma'

Expand All @@ -10,19 +10,11 @@ gem 'uglifier', '>= 1.3.0'
gem 'jquery-rails'

group :development do
gem 'better_errors'
gem 'binding_of_caller'
gem 'pry-byebug'
end

gem 'faker'
gem 'ace-rails-ap'
gem 'bootstrap_form'
gem 'kramdown'
gem 'bootstrap-sass', '~> 3.4'

group :production do
gem 'net-smtp', require: false
gem 'net-imap', require: false
gem 'net-pop', require: false
end
gem 'bootstrap', '~> 4'
Loading

0 comments on commit be2a94d

Please sign in to comment.