Skip to content

Commit

Permalink
add docker image build and push on release
Browse files Browse the repository at this point in the history
  • Loading branch information
SyniRon committed Jan 17, 2025
1 parent 1445e0b commit 24db6c8
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 16 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_and_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Build and Push Docker Image

on:
release:
types: [created]
push:
tags:
- '[0-9]+.[0-9]+.[0-9]*'

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
7cav/api:${{ github.ref_name }}
7cav/api:latest
28 changes: 14 additions & 14 deletions proto/milpacs.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion proto/milpacs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import "protoc-gen-openapiv2/options/annotations.proto";
// These annotations are used when generating the OpenAPI file.
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
info: {
version: "1.3";
version: "1.3.1";
};
external_docs: {
url: "https://github.com/7cav/api";
Expand Down
2 changes: 1 addition & 1 deletion third_party/OpenAPI/milpacs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"swagger": "2.0",
"info": {
"title": "milpacs.proto",
"version": "1.3"
"version": "1.3.1"
},
"tags": [
{
Expand Down

0 comments on commit 24db6c8

Please sign in to comment.