add docker build + push to CI

This commit is contained in:
Erin Grasmick
2020-07-13 12:38:13 +02:00
parent 48e7aa4306
commit 4bbfd54297
2 changed files with 24 additions and 0 deletions
+12
View File
@@ -22,3 +22,15 @@ jobs:
- name: Build release and call executable
working-directory: ./backend
run: cargo run --release -- --help
- name: Build and Push template image
uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile
repository: paritytech/substrate-telemetry-backend-${{ github.event.client_payload.id }}
tags: latest
add_git_labels: true
tag_with_ref: true
tag_with_sha: true
+12
View File
@@ -36,3 +36,15 @@ jobs:
- name: Build
working-directory: ./frontend
run: yarn build
- name: Build and Push template image
uses: docker/build-push-action@v1 # https://github.com/docker/build-push-action
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
dockerfile: Dockerfile
repository: paritytech/substrate-telemetry-frontend-${{ github.event.client_payload.id }}
tags: latest
add_git_labels: true
tag_with_ref: true
tag_with_sha: true