Skip to content

Commit 3e65279

Browse files
committed
ga for production - fix
1 parent a830fdf commit 3e65279

File tree

2 files changed

+0
-68
lines changed

2 files changed

+0
-68
lines changed

.github/workflows/deploy-production.yml

Lines changed: 0 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -72,69 +72,3 @@ jobs:
7272
eval `ssh-agent -s`
7373
echo "${DEPLOY_SSH_KEY}" | tr -d '\r' | ssh-add -
7474
phing deploy
75-
76-
deploy-staging:
77-
name: "Deploy to srs.skauting.cz"
78-
environment: srs.skauting.cz
79-
runs-on: ubuntu-18.04
80-
container:
81-
image: fmasa/lebeda:8.0
82-
env:
83-
CONFIG_DATABASE_HOST: localhost
84-
CONFIG_DATABASE_NAME: srs
85-
CONFIG_DATABASE_PASSWORD: ${{ secrets.SRS_CONFIG_DATABASE_PASSWORD }}
86-
CONFIG_DATABASE_USER: srs
87-
CONFIG_MAIL_HOST:
88-
CONFIG_MAIL_PASSWORD:
89-
CONFIG_MAIL_PORT: 0
90-
CONFIG_MAIL_SECURE:
91-
CONFIG_MAIL_SMTP: false
92-
CONFIG_MAIL_USERNAME:
93-
CONFIG_SKAUTIS_APPLICATION_ID: fbdfa6ea-8794-448f-b084-832ae3d61588
94-
CONFIG_SKAUTIS_TEST_MODE: true
95-
CONFIG_RECAPTCHA_SITE_KEY: 6LfQAuMZAAAAAL6xbQzujWRZDw-ivJmDF79ch5uQ
96-
CONFIG_RECAPTCHA_SECRET_KEY: ${{ secrets.SRS_CONFIG_RECAPTCHA_SECRET_KEY }}
97-
DEPLOY_DIRECTORY: '$HOME'
98-
DEPLOY_SSH_HOST: srs.skauting.cz
99-
DEPLOY_SSH_IP: 81.31.46.138
100-
DEPLOY_SSH_KEY: ${{ secrets.SRS_DEPLOY_SSH_KEY }}
101-
DEPLOY_SSH_PORT: 28
102-
DEPLOY_SSH_USERNAME: vu008925
103-
steps:
104-
- uses: actions/checkout@v2
105-
# Copy & paste from https://github.com/actions/cache/blob/master/examples.md#php---composer
106-
- name: Get composer cache
107-
id: composer-cache
108-
run: |
109-
echo "::set-output name=dir::$(composer config cache-files-dir)"
110-
- uses: actions/cache@v1
111-
with:
112-
path: ${{ steps.composer-cache.outputs.dir }}
113-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
114-
restore-keys: |
115-
${{ runner.os }}-composer-
116-
- name: Install yarn
117-
run: |
118-
apt-get update
119-
apt-get install -y npm
120-
npm install --global yarn
121-
#Copy & paste from https://github.com/actions/cache/blob/master/examples.md#node---yarn
122-
- name: Get yarn cache
123-
id: yarn-cache-dir-path
124-
run: echo "::set-output name=dir::$(yarn cache dir)"
125-
- uses: actions/cache@v1
126-
id: yarn-cache
127-
with:
128-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
129-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
130-
restore-keys: |
131-
${{ runner.os }}-yarn-
132-
- name: Setup SSH key and deploy
133-
run: |
134-
mkdir -p /root/.ssh
135-
ssh-keyscan -H "${DEPLOY_SSH_HOST}","${DEPLOY_SSH_IP}" >> /root/.ssh/known_hosts
136-
eval `ssh-agent -s`
137-
echo "${DEPLOY_SSH_KEY}" | tr -d '\r' | ssh-add -
138-
phing deploy
139-
140-

.github/workflows/deploy-staging.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,3 @@ jobs:
6868
eval `ssh-agent -s`
6969
echo "${DEPLOY_SSH_KEY}" | tr -d '\r' | ssh-add -
7070
phing deploy
71-
72-

0 commit comments

Comments
 (0)