Skip to content

Commit

Permalink
Updated all dependencies and versions
Browse files Browse the repository at this point in the history
  • Loading branch information
thordy committed Dec 11, 2024
1 parent 3644078 commit d1da7e1
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 776 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,38 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Get Tag Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: DockerHub Login
uses: docker/login-action@v1.10.0
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker Setup QEMU
uses: docker/setup-qemu-action@v1.2.0
uses: docker/setup-qemu-action@v3
with:
platforms: arm,arm64,amd64
- name: Docker Setup Buildx
uses: docker/setup-buildx-action@v1.6.0
uses: docker/setup-buildx-action@v3
- name: Build & Push Docker image (Latest)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/')
run: docker buildx build . --file Dockerfile -t kcapp/api:latest --platform=linux/arm,linux/arm64,linux/amd64 --push
run: |
docker buildx build . \
--file Dockerfile \
--cache-from=type=registry,ref=kcapp/api:cache \
--cache-to=type=registry,ref=kcapp/api:cache,mode=max \
--cache-from=type=local,src=/tmp/docker-cache \
-t kcapp/api:latest \
--platform=linux/arm,linux/arm64,linux/amd64 \
--push
- name: Build & Push Docker image (Release version)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: docker buildx build . --file Dockerfile -t kcapp/api:${{ env.RELEASE_VERSION }} --platform=linux/arm,linux/arm64,linux/amd64 --push
run: |
docker buildx build . \
--file Dockerfile \
--cache-from=type=registry,ref=kcapp/api:cache \
--cache-to=type=registry,ref=kcapp/api:cache,mode=max \
-t kcapp/api:${{ env.RELEASE_VERSION }} \
--platform=linux/arm,linux/arm64,linux/amd64 \
--push
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:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v5
with:
go-version: 1.17
go-version: 1.23
- name: Build
run: go build -v ./...
- name: Test
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Create our build image
FROM golang:alpine AS BUILD_IMAGE
FROM golang:1.23-alpine AS BUILD_IMAGE

# Add git, required to install dependencies
RUN apk update && apk add --no-cache git gcc
Expand Down
22 changes: 13 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
module github.com/kcapp/api

go 1.17
go 1.23

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-sql-driver/mysql v1.6.0
github.com/gorilla/mux v1.8.0
github.com/go-sql-driver/mysql v1.8.1
github.com/gorilla/mux v1.8.1
github.com/guregu/null v4.0.0+incompatible
github.com/jmoiron/sqlx v1.3.4
github.com/jmoiron/sqlx v1.4.0
github.com/jordic/goics v0.0.0-20210404174824-5a0337b716a0
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/testify v1.7.0 // indirect
github.com/stretchr/testify v1.10.0
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

require (
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/spf13/cobra v1.3.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/cobra v1.8.1
github.com/spf13/pflag v1.0.5
)

require (
filippo.io/edwards25519 v1.1.0 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
)
Loading

0 comments on commit d1da7e1

Please sign in to comment.