-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compose improvements and release publishing (#461)
* minimal refactor to share repeated dependency version numbers or build context Signed-off-by: Aaron Sutula <[email protected]> * add gh action to publish docker artifacts Signed-off-by: Aaron Sutula <[email protected]> * consolidate release jobs Signed-off-by: Aaron Sutula <[email protected]> * Better name for archive Signed-off-by: Aaron Sutula <[email protected]> * remove some debug prints Signed-off-by: Aaron Sutula <[email protected]> * newline cleanup Signed-off-by: Aaron Sutula <[email protected]>
- Loading branch information
Showing
8 changed files
with
67 additions
and
18 deletions.
There are no files selected for viewing
31 changes: 28 additions & 3 deletions
31
.github/workflows/publish-grpc-libs.yml → .github/workflows/release.yml
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 |
---|---|---|
@@ -1,9 +1,34 @@ | ||
name: Publish JS gRPC bindings | ||
name: Release | ||
on: | ||
release: | ||
types: [published] | ||
types: [created] | ||
jobs: | ||
|
||
publish_docker: | ||
name: Publish Docker Compose Setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v1 | ||
- name: Get latest tag | ||
id: latesttag | ||
uses: "WyriHaximus/github-action-get-previous-tag@master" | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
- name: Update powergate image version | ||
run: sed -i.bak 's/latest/${{steps.latesttag.outputs.tag}}/g' docker/powergate-image.yaml | ||
- name: Update Makefile | ||
run: sed -i.bak 's/powergate-build-context/powergate-image/g' docker/Makefile | ||
- name: Remove sed backups | ||
run: rm -rf docker/*.bak | ||
- name: Create archive | ||
run: | | ||
mv docker powergate-docker | ||
zip -r powergate-docker.zip powergate-docker | ||
- name: Upload artifacts to release | ||
uses: AButler/[email protected] | ||
with: | ||
files: 'powergate-docker.zip' | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_grpc_lib: | ||
name: Publish JS gRPC bindings | ||
runs-on: ubuntu-latest | ||
|
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
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 |
---|---|---|
@@ -1,16 +1,28 @@ | ||
down: | ||
docker-compose down | ||
docker-compose -p devnet down | ||
docker-compose \ | ||
-f docker-compose.yaml \ | ||
-f ipfs-image.yaml \ | ||
-f powergate-build-context.yaml \ | ||
down | ||
docker-compose -p devnet \ | ||
-f docker-compose-devnet.yaml \ | ||
-f ipfs-image.yaml \ | ||
-f powergate-build-context.yaml \ | ||
down | ||
.PHONY: down | ||
|
||
up: down | ||
docker-compose up --build | ||
docker-compose \ | ||
-f docker-compose.yaml \ | ||
-f ipfs-image.yaml \ | ||
-f powergate-build-context.yaml \ | ||
up --build | ||
.PHONY: up | ||
|
||
devnet: | ||
docker-compose -p devnet -f docker-compose-devnet.yaml up --build -V | ||
docker-compose -p devnet \ | ||
-f docker-compose-devnet.yaml \ | ||
-f ipfs-image.yaml \ | ||
-f powergate-build-context.yaml \ | ||
up --build -V | ||
.PHONY: devnet | ||
|
||
devnet-small: | ||
BIGSECTORS=false docker-compose -p devnet -f docker-compose-devnet.yaml up --build -V | ||
.PHONY: devnet-small |
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
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
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,6 @@ | ||
version: '3.7' | ||
|
||
services: | ||
|
||
ipfs: | ||
image: ipfs/go-ipfs:v0.5.1 |
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,7 @@ | ||
version: '3.7' | ||
|
||
services: | ||
|
||
powergate: | ||
build: | ||
context: ../ |
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,5 @@ | ||
version: "3.7" | ||
|
||
services: | ||
powergate: | ||
image: textile/powergate:latest |