Skip to content

Improve db schema for block #2

Improve db schema for block

Improve db schema for block #2

name: CI/CD Obscura pre-Dev
# TODO
on:
pull_request:
types: [labeled]
jobs:
build_and_deploy:
if: ${{ github.event.label.name == 'dev-frontend' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
lfs: "true"
- name: Install Skaffold
run: |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/latest/skaffold-linux-amd64
sudo install skaffold /usr/local/bin/
shell: bash
- name: Configure AWS CLI
run: |
echo $AWS_ACCESS_KEY_ID
echo $AWS_SECRET_ACCESS_KEY
echo $AWS_DEFAULT_REGION
aws eks --region $AWS_DEFAULT_REGION update-kubeconfig --name obscura-dev
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_DEV_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_DEV_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-west-3
- name: Login to Amazon ECR
run: |
aws ecr get-login-password --region eu-west-3 | docker login --username AWS --password-stdin 097733725684.dkr.ecr.eu-west-3.amazonaws.com
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_DEV_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_DEV_SECRET_ACCESS_KEY }}
- name: Build and push Docker images
run: |
echo $AWS_ACCESS_KEY_ID
echo $AWS_SECRET_ACCESS_KEY
echo $AWS_DEFAULT_REGION
skaffold run --filename k8s/pre-development/skaffold.pre-dev.yaml
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_DEV_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_DEV_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: eu-west-3
shell: bash