diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 34e0a98..12e75db 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -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 diff --git a/.github/workflows/frontend.yml b/.github/workflows/frontend.yml index e6f8ebe..fcbc0ce 100644 --- a/.github/workflows/frontend.yml +++ b/.github/workflows/frontend.yml @@ -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