mirror of
https://github.com/simon-ding/polaris.git
synced 2026-02-06 23:21:00 +08:00
32 lines
674 B
YAML
32 lines
674 B
YAML
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 ./... |