Skip to content

Update node-redis to v4 and redis-lock to v1 #94

Update node-redis to v4 and redis-lock to v1

Update node-redis to v4 and redis-lock to v1 #94

name: importer-db-api-production
on:
release:
types: [published]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 'Login to toska Docker registry'
uses: docker/login-action@v3
with:
registry: registry-toska.ext.ocp-prod-0.k8s.it.helsinki.fi
username: ${{ secrets.TOSKAREGISTRY_USERNAME }}
password: ${{ secrets.TOSKAREGISTRY_PASSWORD }}
- name: 'Run importer-db and importer-db-api'
run: docker compose --file docker-compose.ci.yml up --detach --quiet-pull
- name: 'Run unit tests'
run: docker compose --file docker-compose.ci.yml exec importer-db-api npm run test
- name: Install dependencies
run: npm ci && npm ci --prefix importer-db-api
- name: Lint files
run: npm run eslint -- importer-db-api
build-and-push:
runs-on: ubuntu-latest
needs: [test]
steps:
- uses: actions/checkout@v4
- name: Build and push image
uses: ./.github/actions/build-and-push-image
with:
image: importer-db-api
tag: production
password: ${{ secrets.QUAY_IO_TOKEN }}