Make image on home even brighter on mobiles #139
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 workflow deploys the olahd-user-frontend on the servers. Deployment is done with an existing | |
# script on the server. This script updates the sources, shuts down user-frontend docker-containers | |
# and finally builds and starts it again. | |
name: Deploy olahd-user-frontend | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'develop' | |
tags: | |
#- 'refs/tags/v*' | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
workflow_dispatch: | |
jobs: | |
deploy-develop: | |
name: Deploy to develop | |
environment: | |
name: Develop | |
if: github.event.ref == 'refs/heads/develop' | |
runs-on: ubuntu-latest | |
steps: | |
- name: copy key | |
run: | | |
mkdir -p ~/.ssh/ | |
echo "$SSH_KEY" > ~/.ssh/key | |
chmod 600 ~/.ssh/key | |
env: | |
SSH_KEY: ${{ secrets.OLAHD_SSH_KEY }} | |
- name: deploy to server | |
run: ssh $SSH_USER@$SSH_HOST -o StrictHostKeyChecking=no -i ~/.ssh/key /home/$SSH_USER/start-olahd-docker.sh -u | |
env: | |
SSH_USER: ${{ secrets.OLAHD_SSH_USER }} | |
SSH_HOST: ${{ secrets.OLAHD_SSH_HOST_DEV }} | |
deploy-staging: | |
name: Deploy to staging | |
environment: | |
name: Staging | |
if: github.event.ref == 'refs/heads/main' | |
runs-on: ubuntu-latest | |
steps: | |
- name: copy key | |
run: | | |
mkdir -p ~/.ssh/ | |
echo "$SSH_KEY" > ~/.ssh/key | |
chmod 600 ~/.ssh/key | |
env: | |
SSH_KEY: ${{ secrets.OLAHD_SSH_KEY }} | |
- name: deploy to server | |
run: ssh $SSH_USER@$SSH_HOST -o StrictHostKeyChecking=no -i ~/.ssh/key /home/$SSH_USER/start-olahd-docker.sh -u | |
env: | |
SSH_USER: ${{ secrets.OLAHD_SSH_USER }} | |
SSH_HOST: ${{ secrets.OLAHD_SSH_HOST_STAGE }} | |
deploy-production: | |
name: Deploy to production | |
environment: | |
name: Production | |
#if: startsWith(github.event.ref, 'refs/tags/v') | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
steps: | |
- name: copy key | |
run: | | |
mkdir -p ~/.ssh/ | |
echo "$SSH_KEY" > ~/.ssh/key | |
chmod 600 ~/.ssh/key | |
env: | |
SSH_KEY: ${{ secrets.OLAHD_SSH_KEY }} | |
- name: deploy to server | |
run: ssh $SSH_USER@$SSH_HOST -o StrictHostKeyChecking=no -i ~/.ssh/key /home/$SSH_USER/start-olahd-docker.sh -u | |
env: | |
SSH_USER: ${{ secrets.OLAHD_SSH_USER }} | |
SSH_HOST: ${{ secrets.OLAHD_SSH_HOST_PROD }} | |
run-tests-develop: | |
needs: deploy-develop | |
name: Run cypress tests on develop-vm after new deployment | |
environment: | |
name: Develop | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
config: baseUrl=${{ secrets.BASE_URL_TESTS_DEVELOP }} | |
env: | |
CYPRESS_PASSWORD: ${{ secrets.OLAHD_LOGIN_PASSWORD }} |