Skip to content

Release v1.0.22

Release v1.0.22 #28

Workflow file for this run

name: "Deploy Update to Live Server"
on:
release:
branches: [master]
types: [published]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
component: [frontend, backend, maintenance, database]
runs-on: ubuntu-latest
outputs:
image_tag: ${{ steps.build_combine.outputs.image_tag }}
steps:
# See https://docs.stepsecurity.io/harden-runner/getting-started/ for instructions on
# configuring harden-runner and identifying allowed endpoints.
- name: Harden Runner
uses: step-security/harden-runner@55d479fb1c5bcad5a4f9099a5d9f37c8857b2845 # v2.4.1
with:
egress-policy: audit
allowed-endpoints: >
*.data.mcr.microsoft.com:443
api.ecr-public.us-east-1.amazonaws.com:443
api.github.com:443
api.nuget.org:443
archive.ubuntu.com:80
auth.docker.io:443
files.pythonhosted.org:443
github.com:443
mcr.microsoft.com:443
production.cloudflare.docker.com:443
public.ecr.aws:443
pypi.org:443
registry-1.docker.io:443
registry.npmjs.org:443
sts.us-east-1.amazonaws.com:443
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
- name: Build The Combine
id: build_combine
uses: ./.github/actions/combine-build
with:
image_registry: public.ecr.aws
image_registry_alias: "/thecombine"
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# Note that the region for the public registries is always us-east-1 regardless of
# the account's default region. See the section "To authenticate Docker to an Amazon
# ECR registry with get-login-password in
# https://docs.aws.amazon.com/AmazonECR/latest/public/public-registries.html
aws_default_region: us-east-1
build_component: ${{ matrix.component }}
deploy_update:
needs: build
runs-on: [self-hosted, thecombine]
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
fetch-depth: 0
- name: Deploy The Combine Update
uses: ./.github/actions/combine-deploy-update
with:
image_registry: public.ecr.aws
image_registry_alias: "/thecombine"
image_tag: ${{ needs.build.outputs.image_tag }}
kube_context: ${{ secrets.LTOPS_K8S_STAGING_CONTEXT }}
update_cert_proxy: false
- name: Deploy The Combine Update
uses: ./.github/actions/combine-deploy-update
with:
image_registry: public.ecr.aws
image_registry_alias: "/thecombine"
image_tag: ${{ needs.build.outputs.image_tag }}
kube_context: ${{ secrets.LTOPS_K8S_PRODUCTION_CONTEXT }}
update_cert_proxy: true