Skip to content

Merge branch 'fix/seed-data' into staging #344

Merge branch 'fix/seed-data' into staging

Merge branch 'fix/seed-data' into staging #344

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: staging-deployment
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ staging ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
container:
image: wehostasia/ruby:2.3.3
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa # optional
known_hosts: ${{ secrets.KNOWN_HOSTS }}
config: ${{ secrets.CONFIG }} # ssh_config; optional
if_key_exists: fail # replace / ignore / fail; optional (defaults to fail)
- name: Gem install bundle
run: gem install bundler -v '1.17.3'
- name: Gem install sysrandom
run: gem install sysrandom -v '1.0.5'
- name: Run bundle install
run: bundle install --verbose --jobs 20 --retry 5
- name: Run yarn install
run: yarn install
- name: detected dubious ownership in repository
run: git config --global --add safe.directory /__w/oscar-web/oscar-web
- name: Deploy to staging server
run: eval $(ssh-agent) && ssh-add && APPSIGNAL_PUSH_API_KEY=${{ secrets.APPSIGNAL_PUSH_API_KEY }} cap staging deploy