Skip to content

Commit

Permalink
Merge pull request #3 from scientist-softserv/add-ghas
Browse files Browse the repository at this point in the history
add-ghas
  • Loading branch information
aprilrieger authored Oct 23, 2023
2 parents 647bd35 + cc92713 commit d642e9f
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build-test-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: 'Build Test Lint'
run-name: Build Test Lint of ${{ github.ref_name }} by @${{ github.actor }}
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false

jobs:
build:
uses: scientist-softserv/actions/.github/workflows/[email protected]
secrets: inherit
with:
platforms: 'linux/amd64'
webTarget: web

# test:
# needs: build
# uses: scientist-softserv/actions/.github/workflows/[email protected]
# with:
# webTarget:

# lint:
# needs: build
# uses: scientist-softserv/actions/.github/workflows/[email protected]
# with:
# webTarget:
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Deploy"
run-name: Deploy (${{ github.ref_name }} -> ${{ inputs.environment }}) by @${{ github.actor }}
on:
workflow_dispatch:
inputs:
environment:
description: 'Deploy to Environment'
required: true
default: 'staging'
type: choice
options:
- staging
# - production
debug_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false

jobs:
deploy:
uses: scientist-softserv/actions/.github/workflows/[email protected]
secrets: inherit
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ruby:3.1.3
FROM ruby:3.1.3 as web
WORKDIR /app

COPY Gemfile* ./
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ volumes:
services:

web:
build: .
build:
target: web
context: .
volumes:
- "./:/app/"
- "./log:/app/log"
Expand Down

0 comments on commit d642e9f

Please sign in to comment.