This commit is contained in:
Simon Ding
2024-07-10 17:52:28 +08:00
parent e500aaed1e
commit a81b68b236
3 changed files with 92 additions and 1 deletions

32
.github/workflows/go.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: build
on:
push:
branches: [ main ]
jobs:
build_and_deploy_docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to image repository
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/simon-ding/polaris:latest
# - name: Set up Go
# uses: actions/setup-go@v3
# with:
# go-version: '>=1.20.0'
# - name: Build
# run: go build -v ./...