Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/add workflow for build docker #11

Merged
merged 17 commits into from
Sep 30, 2024
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
Copy link
Member

@MartinKuzma MartinKuzma Sep 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: Please, use more descriptive name (e.g. Docker image build).


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
Loading