Skip to content

refactor: 整理

refactor: 整理 #10

Workflow file for this run

name: collection-gin
on:
workflow_dispatch:
push:
paths:
- 'v-poc/collection-sdk/s-gin/**'
env:
PROJECT_PATH: 'v-poc/collection-sdk/s-gin'
IMAGE_NAME: 'ghcr.io/lkzc19/poc.collection-gin'
jobs:
collection-gin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 'Set up Docker Buildx'
uses: docker/setup-buildx-action@v2
- name: 'Login to GitHub Container Registry'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: 'Build and push docker image'
uses: docker/build-push-action@v5
with:
context: ${{ env.PROJECT_PATH }}
file: ${{ env.PROJECT_PATH }}/Dockerfile
platforms: |
linux/amd64
linux/arm64
push: true
tags: |
${{ env.IMAGE_NAME }}:latest