From 8b3fc498ba7309341ecadc92e4a02f4ed5d241b3 Mon Sep 17 00:00:00 2001 From: "Seraphim R. Pardee" Date: Fri, 20 Sep 2024 13:31:51 -0400 Subject: [PATCH] Update build to build container and push to registry. --- .gitea/workflows/build.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 876ebe0..f698ea1 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,18 +1,23 @@ name: build run-name: ${{ gitea.actor }} is building. on: [push] -needs: [test] jobs: build: runs-on: ubuntu-latest 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 uses: actions/checkout@v4 - - name: setup go 1.23.1 and fetch deps - uses: actions/setup-go@v5 + - name: build and push to registry + uses: docker/build-push-action@v6 with: - go-version: '1.23.1' - cache-dependency-path: go.sum - - name: do the actual build thing - run: go build -v ./... + push: true + tags: ${{ gitea.actor }}/bingo:dev