Skip to content

Commit

Permalink
chore: update workflow script
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippHeuer committed Jan 6, 2020
1 parent f3d7bd7 commit c1604a3
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
5 changes: 4 additions & 1 deletion .ci/env
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# pipeline config
PROJECT_TYPE=golang
PACKAGE_TYPE=bintray
PUBLISH_TYPE=bintray

# artifact generation
ARTIFACT_BUILD_ARCHS=linux_386,linux_amd64,windows_386,windows_amd64,darwin_386,darwin_amd64
DEPLOYMENT_TYPE=bintray
17 changes: 9 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,27 @@ jobs:
# prepare environment
- name: Environment Setup
run: |
curl https://raw.githubusercontent.com/EnvCLI/modular-pipeline/master/install.sh | sudo bash
curl -L -s https://raw.githubusercontent.com/EnvCLI/modular-pipeline/master/install-prerequisites.sh | sudo bash -s
curl -L -s https://raw.githubusercontent.com/EnvCLI/modular-pipeline/master/install.sh | sudo bash -s /usr/local
# pipeline steps
- name: Prepare
run: |
stage-prepare
mpi stage prepare
- name: Build
run: |
stage-build
mpi stage build
- name: Test
run: |
stage-test
mpi stage test
- name: Package
run: |
stage-package
mpi stage package
- name: Audit
run: |
stage-audit
mpi stage audit
- name: Performance
run: |
stage-performance
mpi stage performance
- name: CleanUp
run: |
stage-cleanup
mpi stage cleanup
19 changes: 10 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,24 @@ jobs:
# prepare environment
- name: Environment Setup
run: |
curl https://raw.githubusercontent.com/EnvCLI/modular-pipeline/master/install.sh | sudo bash
curl -L -s https://raw.githubusercontent.com/EnvCLI/modular-pipeline/master/install-prerequisites.sh | sudo bash -s
curl -L -s https://raw.githubusercontent.com/EnvCLI/modular-pipeline/master/install.sh | sudo bash -s /usr/local
# pipeline steps
- name: Prepare
run: |
stage-prepare
mpi stage prepare
- name: Build
env:
UPX_ENABLE: "true"
UPX_ARGS: --brute
run: |
stage-build
mpi stage build
- name: Test
run: |
stage-test
mpi stage test
- name: Package
run: |
stage-package
mpi stage package
- name: Publish
env:
BINTRAY_ORGANZATION: envcli
Expand All @@ -48,13 +49,13 @@ jobs:
BINTRAY_USERNAME: philippheuer
BINTRAY_TOKEN: ${{ secrets.BINTRAY_TOKEN }}
run: |
stage-publish
mpi stage publish
- name: Audit
run: |
stage-audit
mpi stage audit
- name: Performance
run: |
stage-performance
mpi stage performance
- name: CleanUp
run: |
stage-cleanup
mpi stage cleanup

0 comments on commit c1604a3

Please sign in to comment.