Skip to content

Commit

Permalink
Change ref naming of job (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
DistroByte authored Jan 29, 2024
1 parent 304cd47 commit a50afce
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
pull_request:
types: [closed]

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

jobs:
build:
Expand All @@ -33,8 +33,6 @@ jobs:
./.github/deploy/review.hcl
stop_review:
needs:
- build
runs-on: [self-hosted, deployment-runner]
container:
image: multani/nomad
Expand All @@ -43,15 +41,15 @@ jobs:
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_REF_NAME}
- run: nomad job stop -address=http://nomad.service.consul:4646 -purge blockbot-${GITHUB_HEAD_REF}

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

0 comments on commit a50afce

Please sign in to comment.