Update build to build container and push to registry.
This commit is contained in:
parent
dd62fd2ba8
commit
8b3fc498ba
@ -1,18 +1,23 @@
|
|||||||
name: build
|
name: build
|
||||||
run-name: ${{ gitea.actor }} is building.
|
run-name: ${{ gitea.actor }} is building.
|
||||||
on: [push]
|
on: [push]
|
||||||
needs: [test]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: login to container registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.hl.srp.life
|
||||||
|
username: ${{ gitea.actor }}
|
||||||
|
password: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
- name: docker buildx setup
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
- name: checkout code
|
- name: checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: setup go 1.23.1 and fetch deps
|
- name: build and push to registry
|
||||||
uses: actions/setup-go@v5
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
go-version: '1.23.1'
|
push: true
|
||||||
cache-dependency-path: go.sum
|
tags: ${{ gitea.actor }}/bingo:dev
|
||||||
- name: do the actual build thing
|
|
||||||
run: go build -v ./...
|
|
||||||
|
Loading…
Reference in New Issue
Block a user