Skip to content

fix(deps): update module go.uber.org/automaxprocs to v1.5.3 #95

fix(deps): update module go.uber.org/automaxprocs to v1.5.3

fix(deps): update module go.uber.org/automaxprocs to v1.5.3 #95

Workflow file for this run

name: account-ci
# work on path /cmd/account
on:
push:
paths:
- 'cmd/account/**'
- '.github/workflows/account-ci.yaml'
branches:
- main
pull_request:
paths:
- 'cmd/account/**'
- '.github/workflows/account-ci.yaml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Build account Binary Executable
run: |
go mod tidy
cd cmd/account
go mod tidy
go build -ldflags="-s -w" -o account
- name: Login to DockerHub
if: github.ref == 'refs/heads/main'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: ./cmd/account
file: ./cmd/account/Dockerfile
push: ${{ github.ref == 'refs/heads/main' }}
tags: ${{ secrets.DOCKERHUB_USERNAME || 'account' }}/account:latest