build(deps): bump google.golang.org/grpc from 1.57.0 to 1.57.1 #18
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a golang project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
name: CI | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.20' | |
- name: Test | |
run: make test | |
- name: Build | |
run: make build | |
build-image: | |
runs-on: ubuntu-latest | |
needs: build | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- | |
name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ vars.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- uses: actions/checkout@v3 | |
- | |
name: Build the Docker image | |
run: | | |
make build | |
make image | |
if [[ ${{ github.ref_name }} == "master" ]]; then make push-image; fi | |
if [[ ${{ github.ref_name }} == "develop" ]]; then make push-develop; fi | |
if [[ ${{ github.ref_type }} == "tag" ]]; then make push-tag; fi |