mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
This ensure that we run prettier across all supported filetypes to check for any formatting / style inconsistencies. Previously, it was only run for files in the website/ directory using a deprecated pre-commit plugin. The benefit to keeping this in our pre-commit config is that devs can optionally run these checks locally with `pre-commit run --config .github/pre-commit-config.yaml`. --------- Signed-off-by: Jamil <jamilbk@users.noreply.github.com> Co-authored-by: Thomas Eizinger <thomas@eizinger.io>
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
name: Deploy Production
|
|
run-name: Triggered by ${{ github.actor }} on ${{ github.event_name }}
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
confirmation:
|
|
description: "Are you SURE you want to deploy all changes from the selected commit to production?"
|
|
type: boolean
|
|
tag:
|
|
description: "Image tag to deploy. Defaults to the last commit SHA in the branch."
|
|
type: string
|
|
required: false
|
|
|
|
concurrency:
|
|
group: "deploy-production-${{ github.event_name }}-${{ github.workflow }}-${{ github.ref }}"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
# This is *not* run in CI on main in order to allow
|
|
# breaking changes to be merged as administrator and have the
|
|
# resulting CI green on main.
|
|
# So run them here.
|
|
compatibility-tests:
|
|
uses: ./.github/workflows/_integration_tests.yml
|
|
secrets: inherit
|
|
with:
|
|
relay_image: "us-east1-docker.pkg.dev/firezone-staging/firezone/relay"
|
|
gateway_image: "ghcr.io/firezone/gateway"
|
|
gateway_tag: "latest"
|
|
client_image: "ghcr.io/firezone/client"
|
|
client_tag: "latest"
|
|
|
|
deploy-production:
|
|
if: ${{ inputs.confirmation }}
|
|
needs: compatibility-tests
|
|
secrets: inherit
|
|
uses: ./.github/workflows/_deploy_production.yml
|
|
with:
|
|
tag: ${{ inputs.tag || github.sha }}
|