-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve the setup of the Indexer, including build pipelines and deplo…
…y of Docker image (#3) * Feature/deployment preparations (#1) * Add a prepare docker-compose for Indexer - The docker-compose must be moved out of this repo when the time comes. - Refactoring and updates to the Indexer. * Add grace shutdown periode for the containers - Add artifact publish on the build. - Make docker only build on release, it will eventually be changed to build from binaries and not source. * Add CI/CD flows for deployment * Testing event and updating docker to use binaries * Update README with release process - Improved file names for Docker. - Removed the test and publish workflows. * Update code to align to the blockcore repo
- Loading branch information
Showing
38 changed files
with
232 additions
and
348 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,25 @@ | ||
**/.classpath | ||
**/.dockerignore | ||
**/.env | ||
**/.git | ||
**/.gitignore | ||
**/.project | ||
**/.settings | ||
**/.toolstarget | ||
**/.vs | ||
**/.vscode | ||
**/*.*proj.user | ||
**/*.dbmdl | ||
**/*.jfm | ||
**/azds.yaml | ||
**/bin | ||
**/charts | ||
**/docker-compose* | ||
**/Dockerfile* | ||
**/node_modules | ||
**/npm-debug.log | ||
**/obj | ||
**/secrets.dev.yaml | ||
**/values.dev.yaml | ||
LICENSE | ||
README.md |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: Pull Request | |
on: | ||
pull_request: | ||
branches: | ||
- master | ||
- test3 | ||
|
||
jobs: | ||
|
||
|
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,20 +1,41 @@ | ||
name: Release | ||
name: Build and Release Docker Image | ||
|
||
on: | ||
release: | ||
types: [published, prereleased] | ||
|
||
jobs: | ||
|
||
createRelease: | ||
build: | ||
name: Build and Push | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
fail-fast: false | ||
- name: Log Variables | ||
run: | | ||
echo "action - ${{ github.event.action }}" | ||
echo "url - ${{ github.event.release.url }}" | ||
echo "assets_url - ${{ github.event.release.assets_url }}" | ||
echo "id - ${{ github.event.release.id }}" | ||
echo "tag_name - ${{ github.event.release.tag_name }}" | ||
echo "assets - ${{ github.event.assets }}" | ||
echo "assets[0] - ${{ github.event.assets[0] }}" | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: cschleiden/replace-tokens@v1 | ||
with: | ||
files: '["**/Dockerfile.Release"]' | ||
env: | ||
VERSION: ${{ github.event.release.tag_name }} | ||
|
||
- name: Build the Docker container image | ||
run: docker build -f "./src/Blockcore.Indexer/Dockerfile.Release" -t blockcore/indexer:latest -t blockcore/indexer:${{ github.event.release.tag_name }} --label "unstable=true" "." | ||
|
||
- name: Login and Push to Docker Registry | ||
run: | | ||
docker login -u "sondreb" -p "${{secrets.DockerHubSecret}}" | ||
docker push blockcore/indexer | ||
- uses: actions/checkout@v1 | ||
# - name: Login and Push to GitHub Docker Registry | ||
# run: | | ||
# docker login docker.pkg.github.com -u "blockcore-indexer" -p "${{secrets.GITHUB_TOKEN}}" | ||
# docker push docker.pkg.github.com/block-core/blockcore-indexer/blockcoreindexer:latest |
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
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
"author": { | ||
"name": "Blockcore", | ||
"email": "[email protected]", | ||
"url": "http://www.blockcore.net" | ||
"url": "https://www.blockcore.net" | ||
}, | ||
"description": "", | ||
"repository": { | ||
|
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
Oops, something went wrong.