Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Jan 21, 2022
1 parent 7795751 commit 56f0905
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dev-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Process master push or pr
name: Process dev-1.x push or pr
on:
push:
branches:
- master
- dev-1.x
pull_request:
branches:
- master
- dev-1.x
jobs:
docker-push:
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/dev-1.x'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build docker image from master and push it
- name: Build docker image from dev-1.x and push it
run: ./.github/workflows/scripts/build_and_push_dev.sh
env:
DOCKER_USER: ${{ secrets.DOCKER_USER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prod-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Check Tag
id: check-tag
run: |
if [[ ${GITHUB_REF##*/} =~ ^202[0-9][0-1][0-9][0-3][0-9]$ ]]; then
if [[ ${GITHUB_REF##*/} =~ ^202[0-9][0-1][0-9][0-3][0-9] ]]; then
echo ::set-output name=match::true
fi
- name: Push latest image as prod
Expand Down

0 comments on commit 56f0905

Please sign in to comment.