feat(docker): add dockerfile support for RPC

This commit is contained in:
Mike
2021-03-16 14:44:28 -07:00
parent 365ad90adc
commit e4deeca506
2 changed files with 55 additions and 1 deletions

View File

@@ -42,7 +42,24 @@ jobs:
- name: Build RPC (Debug)
run: cd build && cmake --build . --config Debug
build-docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: docker build
run: docker build -f "Dockerfile" --tag vprodemo.azurecr.io/rpc:${{ github.sha }} --tag vprodemo.azurecr.io/rpc:latest .
- name: Docker Login
uses: docker/login-action@v1.6.0
with:
registry: vprodemo.azurecr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
logout: true
- name: Push the Docker image to the registry
run: docker push vprodemo.azurecr.io/rpc:${{ github.sha }}
- name: Push the Docker image to the registry
run: docker push vprodemo.azurecr.io/rpc:latest
build-linux:
runs-on: ${{ matrix.os }}
strategy: