feat: fixer for fixing cells #153
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
name: Build and push docker | |
on: | |
push: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Build Spring app | |
run: ./gradlew bootjar | |
- name: Login into docker registry | |
uses: docker/[email protected] | |
with: | |
username: 1grzyb1 | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push Docker for backend | |
uses: docker/[email protected] | |
with: | |
context: . | |
push: true | |
tags: 1grzyb1/odyseja:latest | |
- name: Build and push Docker for frontend | |
uses: docker/[email protected] | |
with: | |
context: ./odyseja-ui | |
push: true | |
tags: 1grzyb1/odyseja-frontend:latest | |
- name: Deploy dev env | |
uses: appleboy/ssh-action@master | |
with: | |
host: 37.27.71.201 | |
username: ${{ secrets.DEPLOY_USERNAME }} | |
key: ${{ secrets.DEPLOY_PRIVATE_KEY }} | |
script: | | |
cd odysejapka/Odysejapka | |
git pull | |
export POSTGRES_PASSWORD=${{ secrets.POSTGRES_PASSWORD }} | |
export CALLBACK_URL='http://grzybek.snet.ovh:3000/callback' | |
export BACKEND_URL='http://grzybek.snet.ovh:8082' | |
docker-compose -p odyseja -f deployment/docker-compose.yml up -d | |
docker image prune --filter "dangling=true" |