Docker
Some checks failed
Go / build (push) Failing after 25s

This commit is contained in:
2023-10-27 11:40:19 +13:00
parent e56a541a40
commit 15a7690e36
2 changed files with 54 additions and 12 deletions

View File

@@ -9,20 +9,31 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go: [ '1.21' ]
name: Go ${{ matrix.go }} test
steps:
- uses: actions/checkout@v4
# - uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
# - name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: 1.21
# - name: Build
# run: go build -v ./...
- name: Login to Docker registry
uses: docker/login-action@v3
with:
go-version: ${{ matrix.go }}
registry: git.nice.net.nz
username: hads
password: ${{ secrets.PAT }}
- name: Build
run: go build -v ./...
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# - name: Test
# run: go test -v ./...
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: git.nice.net.nz/snice:latest