Skip to content

Commit

Permalink
Merge pull request #7 from jmriebold/feat/upgrade-to-sdk2
Browse files Browse the repository at this point in the history
feat: Upgrades to aws-sdk-go-v2
  • Loading branch information
jmriebold authored Aug 21, 2021
2 parents b857319 + 61127f0 commit b249afa
Show file tree
Hide file tree
Showing 6 changed files with 115 additions and 39 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
build-go:
strategy:
matrix:
go-version: [1.14.x, 1.15.x]
go-version: [1.16.x]
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.29
version: v1.41

build-docker:
runs-on: ubuntu-latest
Expand All @@ -52,7 +52,7 @@ jobs:
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build and push
- name: Build
id: docker_build
uses: docker/build-push-action@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "1.15"
goversion: "1.16"
extra_files: LICENSE README.md

release-docker:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Build image
FROM golang:1.15-alpine as build
FROM golang:1.16-alpine as build

WORKDIR /app

Expand All @@ -8,7 +8,7 @@ COPY main.go go.mod go.sum ./
RUN go build

# Application image
FROM alpine:3.12 as run
FROM alpine:3.14 as run

RUN addgroup -S sqs-exporter && \
adduser -S -G sqs-exporter sqs-exporter --gecos "" --disabled-password --no-create-home
Expand Down
9 changes: 5 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
module sqs-prometheus-exporter

go 1.15
go 1.16

require (
github.com/aws/aws-sdk-go v1.34.7
github.com/prometheus/client_golang v1.7.1
github.com/rs/zerolog v1.19.0
github.com/aws/aws-sdk-go-v2/config v1.6.0
github.com/aws/aws-sdk-go-v2/service/sqs v1.7.1
github.com/prometheus/client_golang v1.11.0
github.com/rs/zerolog v1.23.0
)
Loading

0 comments on commit b249afa

Please sign in to comment.