Skip to content

Manual Deploy Unstable #20

Manual Deploy Unstable

Manual Deploy Unstable #20

name: Manual Deploy Unstable
on:
workflow_dispatch:
inputs:
tanka_env:
description: 'tanka environment'
required: true
type: choice
default: "testing"
options:
- "testing"
- "staging"
tag:
description: tag
required: true
jobs:
build-unstable:
name: Build unstable ${{ github.event.inputs.tag }}
uses: mlibrary/platform-engineering-workflows/.github/workflows/build-unstable.yml@988a561ebcc3d9becfad840efb1c2295e61c9dc2
with:
image_name: ${{ vars.IMAGE_NAME }}
tag: ${{ github.event.inputs.tag }}
dockerfile: Dockerfile
secrets: inherit
scan-image:
needs: build-unstable
runs-on: ubuntu-latest
steps:
- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ needs.build-unstable.outputs.image }}
format: 'table'
exit-code: '1'
ignore-unfixed: true
vuln-type: 'os,library'
severity: 'CRITICAL,HIGH'
skip-files: '/gems/ruby/3.2.0/gems/openid_connect-2.2.0/spec/mock_response/public_keys/private_key.pem'
deploy:
needs: build-unstable
name: Deploy to ${{ github.event.inputs.tanka_env }}
uses: mlibrary/platform-engineering-workflows/.github/workflows/deploy.yml@988a561ebcc3d9becfad840efb1c2295e61c9dc2
with:
image: ${{ needs.build-unstable.outputs.image }}
file: environments/get-this/${{ github.event.inputs.tanka_env }}/web-image.txt
CONFIG_REPO_RW_APP_ID: ${{ vars.CONFIG_REPO_RW_APP_ID }}
#CONFIG_REPO_RW_INSTALL_ID: ${{ vars.CONFIG_REPO_RW_INSTALL_ID }}
CONFIG_REPO_FULL_NAME: ${{ vars.CONFIG_REPO_FULL_NAME }}
secrets: inherit