mirror of
https://github.com/pezkuwichain/pezkuwi-telemetry.git
synced 2026-06-20 23:21:07 +00:00
Merge pull request #273 from paritytech/eg-docker-build
fix unclear docker CI options
This commit is contained in:
@@ -22,14 +22,13 @@ jobs:
|
|||||||
- name: Build release and call executable
|
- name: Build release and call executable
|
||||||
working-directory: ./backend
|
working-directory: ./backend
|
||||||
run: cargo run --release -- --help
|
run: cargo run --release -- --help
|
||||||
|
|
||||||
- name: Build and Push template image
|
- name: Build and Push template image
|
||||||
working-directory: ./backend
|
|
||||||
uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action
|
uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
dockerfile: Dockerfile
|
path: ./backend/
|
||||||
|
dockerfile: ./backend/Dockerfile
|
||||||
repository: parity/substrate-telemetry-backend
|
repository: parity/substrate-telemetry-backend
|
||||||
push: ${{ startsWith(github.ref, 'refs/tags/') }}
|
push: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
tags: latest
|
tags: latest
|
||||||
|
|||||||
@@ -36,14 +36,13 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ./frontend
|
working-directory: ./frontend
|
||||||
run: yarn build
|
run: yarn build
|
||||||
|
|
||||||
- name: Build and Push template image
|
- name: Build and Push template image
|
||||||
working-directory: ./frontend
|
|
||||||
uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action
|
uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
username: ${{ secrets.DOCKER_USERNAME }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
dockerfile: Dockerfile
|
path: ./frontend/
|
||||||
|
dockerfile: ./frontend/Dockerfile
|
||||||
repository: parity/substrate-telemetry-frontend
|
repository: parity/substrate-telemetry-frontend
|
||||||
push: ${{ startsWith(github.ref, 'refs/tags/') }}
|
push: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
tags: latest
|
tags: latest
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ polkadot --dev --telemetry-url ws://localhost:8000/submit
|
|||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
|
*Pre-built docker images are available at `parity/substrate-telemetry-frontend` and `parity/substrate-telemetry-backend`.*
|
||||||
|
|
||||||
### Run the backend and frontend
|
### Run the backend and frontend
|
||||||
|
|
||||||
Obviously, the frontend need to be aware of the backend. In a similar way, your node will need to connect to the backend.
|
Obviously, the frontend need to be aware of the backend. In a similar way, your node will need to connect to the backend.
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ RUN yarn install && \
|
|||||||
yarn build && \
|
yarn build && \
|
||||||
yarn cache clean
|
yarn cache clean
|
||||||
|
|
||||||
|
|
||||||
#### OUTPUT IMAGE ####
|
#### OUTPUT IMAGE ####
|
||||||
FROM nginx:stable-alpine
|
FROM nginx:stable-alpine
|
||||||
LABEL maintainer="Chevdor <chevdor@gmail.com>"
|
LABEL maintainer="Chevdor <chevdor@gmail.com>"
|
||||||
|
|||||||
Reference in New Issue
Block a user