Skip to content

Commit

Permalink
Merge pull request #287 from wearefuturegov/feature/rails-6-container…
Browse files Browse the repository at this point in the history
…isation

#1 Feature/rails 6 containerisation
  • Loading branch information
apricot13 authored Nov 29, 2023
2 parents 21909e7 + 3ccc7b3 commit 9858f6d
Show file tree
Hide file tree
Showing 34 changed files with 155,994 additions and 360 deletions.
98 changes: 98 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
Procfile
makefile

# git
.git
.gitattributes
.gitignore
.github

# docker
docker-compose.yml
docker-compose.*
Dockerfile
.dockerignore
# environment/

# environment and secretsss
.env
# Comment out this rule if you are OK with secrets being uploaded to the repo
config/initializers/secret_token.rb
config/master.key

# Only include if you have production secrets in this file, which is no longer a Rails default
config/secrets.yml
/lib/seeds/*

# Ignore uploaded files in development
/storage/*
!/storage/.keep

# Common
README.md
CHANGELOG.md

# logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
/log/*
!/log/.keep

# tmp
/tmp/*
!/tmp/.keep
*.swp
*~
.DS_Store

# Dependencies and dependency managers
node_modules/
# Ignore yarn files
/yarn-error.log
yarn-debug.log*
.yarn-integrity
/bundle/
/.bundle
/vendor/bundle
# these should all be checked in to normalize the environment:
# Gemfile.lock, .ruby-version, .ruby-gemset

# ides
.idea
.vscode

# ruby
# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc
*.gem
/.config
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/

# Ignore Byebug command history file.
.byebug_history

# rails
*.rbc
capybara-*.html
.rspec
/db/*.sqlite3
/db/*.sqlite3-journal
/public/system
/coverage/
/spec/tmp
rerun.txt
pickle-email-*.html

# Ignore precompiled javascript packs
/public/packs
/public/packs-test
/public/assets
53 changes: 0 additions & 53 deletions .env.example

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/ghcr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy Images to GHCR

# temporarily run on push for this branch
on: [push]
on:
push:
branches:
- feature/develop
workflow_dispatch:

jobs:
push-store-image:
runs-on: ubuntu-latest
steps:
- name: "Checkout GitHub Action"
uses: actions/checkout@main

- name: "Login to GitHub Container Registry"
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}

- name: "Build Inventory Image"
run: |
docker build . --tag ghcr.io/wearefuturegov/outpost:latest
docker push ghcr.io/wearefuturegov/outpost:latest
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

name: Run tests

env:
RAILS_ENV: test
NODE_ENV: development

on: [push]

jobs:
Expand Down
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ yarn-debug.log*
/coverage

.DS_Store
yarn.lock
.vscode
.vscode
.env*

/config/credentials/production.key
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
lts/*
16.13.1
Loading

0 comments on commit 9858f6d

Please sign in to comment.