Skip to content

Commit

Permalink
Change workflow order
Browse files Browse the repository at this point in the history
  • Loading branch information
DistroByte committed Jan 29, 2024
1 parent 48c9085 commit 325014e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 34 deletions.
30 changes: 29 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ env:
on:
push:
branches:
- "main"
- "*"

pull_request:
branches:
Expand Down Expand Up @@ -49,3 +49,31 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

deploy-to-prod:
if: contains( github.ref, 'main')

runs-on: [self-hosted, deployment-runner]

container:
image: git.dbyte.xyz/distro/levant:latest

steps:
- uses: actions/checkout@v3

- name: Deploy to Nomad
run: cd $GITHUB_WORKSPACE && tools/deploy-prod.sh

deploy-to-review:
if: contains( github.ref, 'main') == false

runs-on: [self-hosted, deployment-runner]

container:
image: git.dbyte.xyz/distro/levant:latest

steps:
- uses: actions/checkout@v3

- name: Deploy to Nomad
run: cd $GITHUB_WORKSPACE && tools/deploy-review.sh
33 changes: 0 additions & 33 deletions .github/workflows/deploy.yml

This file was deleted.

0 comments on commit 325014e

Please sign in to comment.