Skip to content

chore(deps): bump @owlebot/* #17

chore(deps): bump @owlebot/*

chore(deps): bump @owlebot/* #17

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
paths:
- package.json
- yarn.lock
- Dockerfile
- .dockerignore
- k8s/**
- src/**
workflow_dispatch:
jobs:
test:
uses: ./.github/workflows/test.yaml # use the callable tests job to run tests
secrets:
SSH_GITHUB_KEY: ${{ secrets.SSH_GITHUB_KEY }}
build:
runs-on: ubuntu-latest
if: github.event.repository.name != 'main' && github.event.repository.name != 'template-service'
needs: [test]
steps:
- name: Login to GitLab
uses: docker/login-action@v2
with:
registry: registry.gitlab.com
username: ${{ secrets.GITLAB_USERNAME }}
password: ${{ secrets.GITLAB_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
with:
tags: registry.gitlab.com/owlebot/docker-registry/${{ github.event.repository.name }}:latest
push: true
no-cache: true
deploy:
runs-on: ubuntu-latest
if: github.event.repository.name != 'main' && github.event.repository.name != 'template-service'
needs: [test, build]
steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.9.0
cache: yarn
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
continue-on-error: true
with:
known_hosts: unnecessary
key: ${{ secrets.SSH_GITHUB_KEY }}
- name: Setup Helm
uses: azure/setup-helm@v3
with:
version: v3.12.0
- name: Login to Digital Ocean
uses: digitalocean/action-doctl@v2
with:
token: ${{ secrets.DIGITALOCEAN_ACCESS_TOKEN }}
- name: Setup kubeconfig
run: doctl kubernetes cluster kubeconfig save --expiry-seconds 600 29016237-ff37-48f0-9082-48059a81a12d
- name: Install dependencies
run: yarn install --network-concurrency 1
env:
CI: true
- name: Deploy to cluster
run: yarn deploy --env production --version ${{ github.sha }}