diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml new file mode 100644 index 0000000..c1028c0 --- /dev/null +++ b/.github/workflows/docker.yaml @@ -0,0 +1,22 @@ +name: Docker + +on: + push: + tags: + - 'v*.*.*' +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: azure/docker-login@v2 + with: + login-server: ${{ vars.ACR_URL }} + username: ${{ vars.ACR_USERNAME }} + password: ${{ secrets.ACR_PASSWORD }} + + - uses: docker/build-push-action@v6 + with: + push: true + tags: ${{ vars.ACR_URL }}/grpc-rest-proxy:${{ steps.meta.outputs.tags || github.sha }}, ${{ vars.ACR_URL }}/grpc-rest-proxy:latest \ No newline at end of file diff --git a/README.md b/README.md index 662eb07..25a36ae 100644 --- a/README.md +++ b/README.md @@ -139,7 +139,7 @@ spec: containerPort: 50051 # gateway that will connnect to service - name: grpc-rest-proxy - image: "grpc-rest-proxy:latest" # provider your own image + image: grpcrestproxy.azurecr.io/grpc-rest-proxy:latest command: - "/app/grpc-rest-proxy" args: