Skip to content
This repository has been archived by the owner on Sep 30, 2023. It is now read-only.

Commit

Permalink
feat(ci): production CI for tags
Browse files Browse the repository at this point in the history
Added some logic on `env.CONTEXT` to match tags reference to be
production.

Changes to be committed:
	modified:   .github/workflows/django.yml
  • Loading branch information
LeCuay committed Nov 9, 2022
1 parent a0406a1 commit a1fd07d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Oil & Rope CI

on: [push]
on:
push

env:
CONTEXT: ${{ github.ref_name == 'master' && 'prod' || 'dev' }}
CONTEXT: ${{ contains(github.event.ref, 'tag') && 'prod' || github.ref_name == 'master' && 'prod' || 'dev' }}

jobs:
testing-and-linter:
Expand Down

0 comments on commit a1fd07d

Please sign in to comment.