-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Steve Sloka <[email protected]>
- Loading branch information
1 parent
1147f66
commit 0dd5b8b
Showing
5 changed files
with
111 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Build and push :master image | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: check format | ||
run: make check_format | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: deps | ||
run: sudo apt-get update -y && sudo apt-get install stunnel4 redis -y | ||
|
||
- name: build and push docker image | ||
run: | | ||
redis-server --port 6380 & | ||
redis-server --port 6381 --requirepass password123 & | ||
redis-server --port 6382 --requirepass password123 & | ||
redis-server --port 6384 --requirepass password123 & | ||
redis-server --port 6385 --requirepass password123 & | ||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
make bootstrap bootstrap_redis_tls docker_push | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
VERSION: master |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: CI Build and Test for PR | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: check format | ||
run: make check_format | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: deps | ||
run: sudo apt-get update -y && sudo apt-get install stunnel4 redis -y | ||
|
||
- name: build and test | ||
run: | | ||
redis-server --port 6380 & | ||
redis-server --port 6381 --requirepass password123 & | ||
redis-server --port 6382 --requirepass password123 & | ||
redis-server --port 6384 --requirepass password123 & | ||
redis-server --port 6385 --requirepass password123 & | ||
make bootstrap bootstrap_redis_tls tests_unit tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Build and push :release image | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: check format | ||
run: make check_format | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: deps | ||
run: sudo apt-get update -y && sudo apt-get install stunnel4 redis -y | ||
|
||
- name: build and push docker image | ||
run: | | ||
redis-server --port 6380 & | ||
redis-server --port 6381 --requirepass password123 & | ||
redis-server --port 6382 --requirepass password123 & | ||
redis-server --port 6384 --requirepass password123 & | ||
redis-server --port 6385 --requirepass password123 & | ||
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin | ||
make bootstrap bootstrap_redis_tls docker_push | ||
env: | ||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters