-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #173 from konturio/resolve-kontur-mr-conflicts
Deliver all the kontur changes to original repos
- Loading branch information
Showing
15 changed files
with
396 additions
and
162 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# OAuth login for users | ||
# --------------------- | ||
|
||
FACEBOOK_APP_ID=fillme | ||
FACEBOOK_APP_SECRET=fillme | ||
|
||
GOOGLE_CLIENT_ID=fillme | ||
GOOGLE_CLIENT_SECRET=fillme | ||
|
||
GDRIVE_KEY=fillme | ||
|
||
# OAM-specific | ||
# ------------ | ||
|
||
# The bucket into which images uploaded by users are placed | ||
OIN_BUCKET=fillme | ||
# Convenience for not having to create new buckets. Eg; Travis CI tests require this. | ||
# Remove if not needed, do not leave empty. | ||
# OIN_BUCKET_PREFIX=development | ||
# A bucket just for somewhere to place imagery uploaded from the browser, before it | ||
# gets fully processed. | ||
UPLOAD_BUCKET=fillme | ||
# Used to identify imagery after it has been uploaded. | ||
S3_PUBLIC_DOMAIN=s3.eu-central-1.amazonaws.com | ||
|
||
# AWS credentials | ||
AWS_ACCESS_KEY_ID=fillme | ||
AWS_SECRET_ACCESS_KEY=fillme | ||
AWS_REGION=eu-central-1 # the same region as S3_PUBLIC_DOMAIN | ||
|
||
# For sending emails | ||
SENDGRID_API_KEY=fillme | ||
SENDGRID_FROM=fillme | ||
|
||
# required to run locally | ||
NEW_RELIC_LICENSE_KEY=a1b2c3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: deploy | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup ssh | ||
uses: webfactory/[email protected] | ||
with: | ||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
|
||
- name: Create SSH key | ||
run: | | ||
mkdir -p ~/.ssh/ | ||
echo "$SSH_PRIVATE_KEY" > ../private.key | ||
chmod 600 ../private.key | ||
echo "$SSH_KNOWN_HOSTS" > ~/.ssh/known_hosts | ||
shell: bash | ||
env: | ||
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} | ||
SSH_KNOWN_HOSTS: ${{ secrets.SSH_KNOWN_HOSTS }} | ||
|
||
- name: Deploy to server | ||
run: | | ||
ssh -p 33322 -o "StrictHostKeyChecking no" [email protected] << 'ENDSSH' | ||
cd ~/oam-api && git pull | ||
docker-compose up -d --build | ||
ENDSSH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.