Skip to content

Commit fe965c3

Browse files
authored
maintenance: refactor CI scripts and simplify github CI workflows (#1337)
* refactor github actions to have one file for PR/Push * only run release actions on staging branch with the defined tag * renaming script extension of bash scripts to .bash * shellcheck
1 parent a51d6bf commit fe965c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+350
-960
lines changed

.github/workflows/ci-release.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ name: Github-CI-Release
22

33
on:
44
push:
5-
branches:
6-
- staging
75
tags:
86
- v[0-9]+.[0-9]+.[0-9]+
97

@@ -15,6 +13,8 @@ env:
1513

1614
jobs:
1715
deploy:
16+
# only run on staging branch
17+
if: github.event.base_ref == 'ref/heads/staging'
1818
name: deploy release
1919
runs-on: ubuntu-latest
2020
env:
@@ -24,10 +24,10 @@ jobs:
2424
- name: setup-docker
2525
uses: docker-practice/[email protected]
2626
- name: setup docker-compose
27-
run: sudo ./ci/github/helpers/setup_docker_compose.sh
27+
run: sudo ./ci/github/helpers/setup_docker_compose.bash
2828
- name: set owner variable
2929
run: echo ::set-env name=OWNER::${GITHUB_REPOSITORY%/*}
3030
- name: set git tag
3131
run: echo ::set-env name=GIT_TAG::${GITHUB_REF##*/}
3232
- name: deploy
33-
run: ./ci/deploy/dockerhub-release
33+
run: ./ci/deploy/dockerhub-release.bash

0 commit comments

Comments
 (0)