Skip to content

Commit

Permalink
Merge branch 'main' into hikari-rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzdom authored Jan 31, 2024
2 parents 228e2c9 + 67a1f06 commit 4be6a49
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
tags: |
type=sha,format=long
type=match,pattern=main
type=raw,value=latest,enable={{is_default_branch}}
flavor: |
latest=auto
Expand Down
23 changes: 11 additions & 12 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@ name: Deploy

on:
push:
workflow_dispatch:
pull_request:
types: [closed]

concurrency:
group: '${{ github.ref }}'
cancel-in-progress: true
#concurrency:
# group: '${{ github.ref }}'
# cancel-in-progress: true

jobs:
build:
name: build
uses: './.github/workflows/build.yml'
if: github.event_name != 'pull_request'

deploy_review:
needs:
Expand All @@ -20,7 +22,7 @@ jobs:
runs-on: [self-hosted, deployment-runner]
container:
image: git.dbyte.xyz/distro/levant
if: github.ref != 'refs/heads/master' && github.event_name == 'workflow_dispatch'
if: github.ref != 'refs/heads/main' && github.event_name == 'push'
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
Expand All @@ -32,26 +34,23 @@ jobs:
./.github/deploy/review.hcl
stop_review:
needs:
- build
runs-on: [self-hosted, deployment-runner]
container:
image: multani/nomad
if: github.event_name == 'workflow_dispatch'
if: github.event_name == 'pull_request'
timeout-minutes: 60
steps:
- run: echo "null"
- run: nomad status -address=http://nomad.service.consul:4646
- run: nomad job stop -address=http://nomad.service.consul:4646 -purge blockbot-${GITHUB_SHA}
- run: nomad job stop -address=http://nomad.service.consul:4646 -purge blockbot-${GITHUB_HEAD_REF}

deploy_prod:
needs:
- deploy_review
- stop_review
- build
runs-on: [self-hosted, deployment-runner]
container:
image: git.dbyte.xyz/distro/levant
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
timeout-minutes: 60
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 4be6a49

Please sign in to comment.