Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build x86 and ARM containers, using modern golang version. #67

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
9650294
Modernize - use golang-1.21 and latest GitHub actions.
vitaliyf Feb 3, 2024
9d5d26f
Build arm64 (aarch64) and x86_64 (amd64) containers.
vitaliyf Feb 3, 2024
53363af
Bump github.com/spf13/cobra from 1.2.1 to 1.8.0
dependabot[bot] Feb 3, 2024
7daeca7
Bump golang.org/x/oauth2
dependabot[bot] Feb 3, 2024
527f158
Merge pull request #1 from embrace-io/dependabot/go_modules/github.co…
vitaliyf Feb 3, 2024
5485a14
Merge pull request #4 from embrace-io/dependabot/go_modules/golang.or…
vitaliyf Feb 3, 2024
94e1108
Bump github.com/prometheus/client_golang from 1.11.1 to 1.18.0
dependabot[bot] Feb 3, 2024
6ee27c0
Bump github.com/spf13/viper from 1.9.0 to 1.18.2
dependabot[bot] Feb 3, 2024
b1c4e0d
Bump github.com/sirupsen/logrus from 1.8.1 to 1.9.3
dependabot[bot] Feb 3, 2024
4dadafc
Bump github.com/fsnotify/fsnotify from 1.5.1 to 1.7.0
dependabot[bot] Feb 3, 2024
3df9bea
Merge pull request #5 from embrace-io/dependabot/go_modules/github.co…
vitaliyf Feb 3, 2024
9adc7f9
Merge pull request #6 from embrace-io/dependabot/go_modules/github.co…
vitaliyf Feb 3, 2024
f99006e
Merge branch 'dependabot/go_modules/github.com/spf13/viper-1.18.2'
vitaliyf Feb 3, 2024
6972900
Merge branch 'dependabot/go_modules/github.com/sirupsen/logrus-1.9.3'
vitaliyf Feb 3, 2024
9b4438e
Bump golang.org/x/oauth2 from 0.16.0 to 0.20.0
dependabot[bot] May 6, 2024
510e054
Merge pull request #11 from embrace-io/dependabot/go_modules/golang.o…
vitaliyf Jul 22, 2024
5cd02e2
Bump github.com/prometheus/client_golang from 1.18.0 to 1.19.1
dependabot[bot] Jul 22, 2024
80596b9
Specify full golang toolchain version
vitaliyf Jul 22, 2024
5bf988b
Merge pull request #13 from embrace-io/vitaliyf/go-mod-version
vitaliyf Jul 22, 2024
9dbe2eb
Merge pull request #12 from embrace-io/dependabot/go_modules/github.c…
vitaliyf Jul 22, 2024
16a8924
Bump github.com/spf13/cobra from 1.8.0 to 1.8.1
dependabot[bot] Jul 22, 2024
d565884
Bump golang.org/x/oauth2 from 0.20.0 to 0.21.0
dependabot[bot] Jul 22, 2024
337a33e
Merge pull request #16 from embrace-io/dependabot/go_modules/golang.o…
vitaliyf Jul 22, 2024
a12f0b6
Merge pull request #14 from embrace-io/dependabot/go_modules/github.c…
vitaliyf Jul 22, 2024
5d136a4
Bump golang.org/x/oauth2 from 0.21.0 to 0.23.0
dependabot[bot] Sep 4, 2024
b082e32
Bump github.com/prometheus/client_golang from 1.19.1 to 1.20.4
dependabot[bot] Sep 17, 2024
78a597f
Merge pull request #23 from embrace-io/dependabot/go_modules/github.c…
vitaliyf Sep 21, 2024
66078aa
Merge pull request #21 from embrace-io/dependabot/go_modules/golang.o…
vitaliyf Sep 21, 2024
03a76b3
Bump github.com/spf13/viper from 1.18.2 to 1.19.0
dependabot[bot] Sep 21, 2024
145282d
Merge pull request #15 from embrace-io/dependabot/go_modules/github.c…
vitaliyf Sep 27, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
version: 2
updates:
- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
open-pull-requests-limit: 20
rebase-strategy: "disabled"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
6 changes: 5 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build
run: make docker_build
6 changes: 3 additions & 3 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: '1.16'
go-version: '1.21'
- name: Check out code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Check go fmt has been run
run: |
echo 'Check if go fmt has been run'
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM quay.io/fydrah/golang:1.17-alpine3.13 AS build
FROM golang:1.21-alpine AS build
ARG REPO=github.com/fydrah/loginapp

RUN apk add --no-cache git build-base
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ PACKR_VERSION := $(shell awk '/packr/ {sub(/^[ \t]+/,""); print $$2}' go.mod)
DOCKERFILE := Dockerfile
DOCKER_REPOSITORY := quay.io/fydrah/loginapp
DOCKER_BIN := $(shell which docker || which podman || echo "docker")
DOCKER_BUILD := $(DOCKER_BIN) build -f $(DOCKERFILE) .
DOCKER_BUILD := $(DOCKER_BIN) buildx build --platform linux/amd64,linux/arm64 -f $(DOCKERFILE) .

# Helm
HELM_LOGINAPP_REPO := https://storage.googleapis.com/loginapp-releases/charts
Expand Down
65 changes: 46 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,30 +1,57 @@
module github.com/fydrah/loginapp

go 1.15
go 1.21.0

require (
github.com/cenkalti/backoff v2.2.1+incompatible
github.com/cespare/xxhash/v2 v2.1.2 // indirect
github.com/coreos/go-oidc v2.2.1+incompatible
github.com/fsnotify/fsnotify v1.5.1
github.com/gobuffalo/logger v1.0.4 // indirect
github.com/gobuffalo/packr/v2 v2.8.1
github.com/fsnotify/fsnotify v1.7.0
github.com/gobuffalo/packr/v2 v2.8.3
github.com/julienschmidt/httprouter v1.3.0
github.com/karrick/godirwalk v1.16.1 // indirect
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c
github.com/pquerna/cachecontrol v0.1.0 // indirect
github.com/prometheus/client_golang v1.11.0
github.com/prometheus/common v0.31.1 // indirect
github.com/prometheus/procfs v0.7.3 // indirect
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.2.1
github.com/prometheus/client_golang v1.20.4
github.com/sirupsen/logrus v1.9.3
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.9.0
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
golang.org/x/net v0.0.0-20211007125505-59d4e928ea9d // indirect
golang.org/x/oauth2 v0.0.0-20211005180243-6b3c2da341f1
golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
github.com/spf13/viper v1.19.0
golang.org/x/oauth2 v0.23.0
)

require (
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.3.0 // indirect
github.com/gobuffalo/logger v1.0.6 // indirect
github.com/gobuffalo/packd v1.0.1 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/karrick/godirwalk v1.16.1 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/markbates/errx v1.1.0 // indirect
github.com/markbates/oncer v1.0.0 // indirect
github.com/markbates/safe v1.0.1 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
github.com/pquerna/cachecontrol v0.2.0 // indirect
github.com/prometheus/client_model v0.6.1 // indirect
github.com/prometheus/common v0.55.0 // indirect
github.com/prometheus/procfs v0.15.1 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
github.com/subosito/gotenv v1.6.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
go.uber.org/multierr v1.9.0 // indirect
golang.org/x/crypto v0.21.0 // indirect
golang.org/x/exp v0.0.0-20230905200255-921286631fa9 // indirect
golang.org/x/sys v0.22.0 // indirect
golang.org/x/term v0.18.0 // indirect
golang.org/x/text v0.16.0 // indirect
google.golang.org/protobuf v1.34.2 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading