Skip to content

Commit

Permalink
chore: bump go; minor refactor to github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
costela committed Nov 7, 2023
1 parent 25262b0 commit fe80ae3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
name: main
name: test

on:
pull_request:
push:
branches:
- "*"
- push
- pull_request

jobs:
test:
env:
LATEST_GO: 1.19.x # version used for release
LATEST_GO: 1.21.x # version used for release
strategy:
matrix:
go: [ 1.19.x ]
go: [ 1.21.x ]
os: [ ubuntu-latest ]
arch:
- arm64
- amd64
- arm64
- amd64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand All @@ -25,13 +25,14 @@ jobs:
go-version: ${{ matrix.go }}

- run: make test

test_build:
runs-on: ubuntu-latest
strategy:
matrix:
arch:
- arm64
- amd64
- arm64
- amd64
steps:
- uses: actions/checkout@v3

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
name: Production Build
name: release

on:
push:
push:
tags:
- "v*.*.*"

jobs:
release_build:
env:
LATEST_GO: 1.19.x # version used for release
LATEST_GO: 1.21.x # version used for release
strategy:
matrix:
go: [ 1.19.x ]
go: [ 1.21.x ]
os: [ ubuntu-latest ]
arch:
- arm64
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM --platform=$TARGETPLATFORM golang:1.19.3-alpine as builder
FROM --platform=$TARGETPLATFORM golang:1.21.3-alpine as builder

ENV CGO_ENABLED=0

Expand Down

0 comments on commit fe80ae3

Please sign in to comment.