Skip to content

logic 弃用 gf gen service #6

logic 弃用 gf gen service

logic 弃用 gf gen service #6

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- master
env:
TZ: "Asia/Shanghai"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.22.2"
- name: Check Go Version
run: go version
- name: Install Dependencies
run: go mod download
- name: Build the Docker image
run: |
GOOS=linux GOARCH=amd64 go build -o main main.go
docker login --username=${{ secrets.DOCKER_USERNAME }} --password=${{ secrets.DOCKER_PASSWORD }} registry.cn-hangzhou.aliyuncs.com
docker build . --file manifest/docker/Dockerfile --tag registry.cn-hangzhou.aliyuncs.com/oldme/oldme-api:latest
docker push registry.cn-hangzhou.aliyuncs.com/oldme/oldme-api:latest