22 lines
400 B
YAML
22 lines
400 B
YAML
name: BuildImage
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: checkout code
|
|
uses: actions/checkout@v3
|
|
|
|
- name: setup go
|
|
uses: https://github.com/actions/setup-go@v4
|
|
with:
|
|
go-version: '>=1.20.1'
|
|
|
|
- name: compile
|
|
run: |
|
|
docker build -t ${{ github.repository }}:${{ github.ref }} . |