Skip to content

Bump swagger-ui-express from 4.6.2 to 5.0.0 in /sourcecode/proxies/auth #1362

Bump swagger-ui-express from 4.6.2 to 5.0.0 in /sourcecode/proxies/auth

Bump swagger-ui-express from 4.6.2 to 5.0.0 in /sourcecode/proxies/auth #1362

Workflow file for this run

name: "API - Resources"
on:
push:
paths:
- "sourcecode/apis/resources/**"
- ".github/workflows/api-resources.yaml"
workflow_call:
inputs:
versionToRelease:
description: 'A version to release'
required: true
type: string
secrets:
AWS_DOCKER_REGISTRY_ACCESS_KEY_ID:
required: true
AWS_DOCKER_REGISTRY_SECRET_ACCESS_KEY:
required: true
env:
workingDirectory: sourcecode/apis/resources
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: "Yarn install with cache"
uses: bahmutov/npm-install@v1
with:
working-directory: ${{ env.workingDirectory }}
- name: "Run tests"
run: cd ${{ env.workingDirectory }}; node node_modules/jest/bin/jest.js --runInBand --colors --verbose --forceExit --config=./jest.config.json
shell: bash
create_release:
runs-on: ubuntu-latest
needs: test
if: ${{ inputs.versionToRelease }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_DOCKER_REGISTRY_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_DOCKER_REGISTRY_SECRET_ACCESS_KEY }}
aws-region: eu-west-1
role-duration-seconds: 3600
role-session-name: GithubCerpusPushImage
- name: Login to AWS docker registry
shell: bash
run: aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws
- name: Build and push app
id: docker_build_app
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-resources-app:${{ inputs.versionToRelease }}
context: sourcecode/apis/resources
target: prod
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and push migration container
id: docker_build_migration
uses: docker/build-push-action@v4
with:
push: true
tags: public.ecr.aws/f0t8l9h1/api-resources-migration:${{ inputs.versionToRelease }}
context: sourcecode/apis/resources
target: migrations
cache-from: type=gha
cache-to: type=gha,mode=max