Skip to content

Commit

Permalink
Feature/add workflow for build docker (#11)
Browse files Browse the repository at this point in the history
* Add workflow for build and push docker image
  • Loading branch information
luborco authored Sep 30, 2024
1 parent 5874274 commit d17703f
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d17703f

Please sign in to comment.